How to populate a Wordpress install with a lot of categories, quickly?

I'm looking at starting a new project, but I've not done anything like this before. I'm hoping someone with more experience will be able to offer me advice on this one.

The site revolves around geographical structure. It's the UK, cut into 50 parts. Each part has many towns, and within each town, many services. Each of the 50 sites will be a different URL, all running on a multisite.

It's going to take quite a while to set up the first area, and all the towns. All towns and services will be categories in the admin panel. Once this is done, I need a fast way of populating the other 29 installs! I'll be seeking a way to effectively "find and replace" town names, so that page titles, meta and categories can be re-used over and over. Is this possible? How would you tackle this? At the moment, I've no real ideas, apart from sitting here with PHP and seeing if I can pass a huge array of towns through a function which adds categories for each town and inserts them into the database...

I know this isn't a question, like "how do I fix this code" but I don't know how to plan for this, and with no plan I think I'm stuffed :)

Topic categories multisite installation Wordpress

Category Web


I would think WP All Import & WP All Export would help here.

  1. You can create 1 category, 1 service etc.... (i.e 1 end point) in the website,
  2. Use WP All Export to export a CSV of the post type in question,
  3. Edit the CSV to include all of the data you need,
  4. Use WP All Import to import the CSV into your post type,
  5. Repeat for each site.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.