WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Justin Handley
    Member
    Posted 2 years 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 2 years 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. Justin Handley
    Member
    Posted 2 years 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. timDesain
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic