• Resolved Justin Handley

    (@justinhandley)


    Hi There – I am trying to figure out if there is a way to move posts between custom taxonomies. I know in the old wordpress there was a plugin that let you convert pages to posts and vice versa. I have events, and when they are over I want to be able to turn them into products to sell videos of them without re-entering all of the information. Is that possible? I have searched all over and can’t find and answer.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    You don’t really move posts, you change objects associated with posts. To change posts to pages and back, you use the function set_post_type(). To do something similar with taxonomy terms, you use wp_set_post_terms(). It includes a parameter where you can choose to either append new terms or overwrite the old ones.

    Thread Starter Justin Handley

    (@justinhandley)

    Thanks for this answer. However, I actually found a plugin called “Post Type Converter” that makes this relatively easy and has recently added support for taxonomies. I have implemented it as a solution for now.

    TimDesain

    (@timdesain)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Moving posts between custom taxonomies’ is closed to new replies.