3974 shaares
436 private links
436 private links
Not too tough a task… I would just create the new taxonomies, and then hunker down and open each post, manually click the year and city, save, and move on to the next post. But then this morning’s shower epiphany struck– I bet I could use wp cli to automate this whole project!
After about an hour of learning the (rather poorly documented) wp cli structure, I was able to come up with this process to automate the migration. Here’s how I did it.