• Resolved WP Monkey

    (@scdesmond)


    I’ve created a new custom post type and taxonomy structure and want move 65+ ‘standard’ posts on the site into the custom post type, along with the categories syncing to the cptui taxonomies.

    Is there a way to do this non-manually?

    I also have a number of Advanced Custom Fields that I’d need to move over as well, although they are not all one-on-one.

    Any information would be greatly appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Good day scdesmond

    We do not have any built in way to migrate existing posts from posttypeA to posttypeB. The closest we have is retaining posts when renaming a post type created with CPTUI. However that’s not the situation you’re in.

    The closest non-all-manual way I can think of would be to use a MySQL UPDATE statement to update the post type value. However, you would either need to update all that have the old value, or find a way to specify which specific ones you want updated. This is potentially more time consuming than alternate options.

    Personally, I’d probably just bite the proverbial bullet and use https://wordpress.org/plugins/post-type-switcher/ to edit the 65+ posts.

    If you’re not switching taxonomies at all, then that part should be persistent and no issue. However, if you’re also needing to switch which taxonomies terms are in, then that’s another not super fun topic to deal with.

    I don’t have any great solution for ACF conversion to standard post meta. Their support may be best for that one.

Viewing 1 replies (of 1 total)

The topic ‘Convert ‘standard’ posts to custom post types?’ is closed to new replies.