Duplicate Post
[resolved] Feature Request: Duplicate to different post type (5 posts)

  1. Eric McNiece
    Posted 3 years ago #

    Since I'm a big fan of custom fields and custom post types, my work often deals with migration, demo content, and a lot of client tutorials. The latest site has two very similar post types and it would be handy if we could duplicate one type into the other!

    Possible? Feasible?

    I'll be checking into this today and will report any findings. I would like to keep this feature on the site though, so I am curious as to whether this feature would make it into the plugin during the next revision or not.

    What do you think?


  2. chavo
    Posted 3 years ago #

    Hi. I'm looking for same feature. Did you find a solution?

    I have 3 custom post type (each one with similar categories). Each post type is equal to a country. But sometimes I need to publish same product for each country. So, I think It would be really good to duplicate post from one post type to another.

    ps: sorry for my english.

  3. Eric McNiece
    Posted 3 years ago #

    I haven't yet found anything that works. I expect that while possible, it would require a decent amount of programming to accomplish... or maybe not.

    Looking at http://wordpress.org/extend/plugins/duplicate-post/other_notes/, there are two actions provided by the plugin:

    dp_duplicate_post and dp_duplicate_page

    These actions accept an $old_post_object variable, which I assume contains the data to be copied. What if you could catch that $old_post_object before it goes through the duplication process and change the $post->post_type object to the type you want?

    Sadly, I think those actions are for processing that information during the duplication process and not used for initiating it.

    Watch this post (http://wordpress.org/support/topic/plugin-duplicate-post-function-to-call-to-duplication-a-customized-post-type-with-custom-fields?replies=1) and we'll see if anything pops up. If there is a function to call that directly duplicates a post, modifying the sent information would be very easy!

  4. newriver
    Posted 3 years ago #

    Hi guys

    I posted this a few days ago but noone has commented yet. Is is similar to what you want to do? Can you help me if possible? Thanks. http://wordpress.org/support/topic/how-do-you-copy-a-post-from-one-wp-account-to-another?replies=1


  5. Lopo
    Plugin Author

    Posted 3 years ago #

    Hi, sorry for the delay in answering the questions...

    That would be possible, but I'm not sure I will ever add this feature, since I don't want to complicate the UI too much, and there are already some plugins that you can use after you copied the post to change its type...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Duplicate Post
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.