Forums

[resolved] Moving posts between custom taxonomies (4 posts)

  1. justinhandley
    Member
    Posted 11 months ago #

    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.

  2. bcworkz
    Member
    Posted 11 months ago #

    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.

  3. justinhandley
    Member
    Posted 11 months ago #

    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.

  4. Nanang Rukmana
    Member
    Posted 11 months ago #

Reply

You must log in to post.

About this Topic