WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Eric McNiece
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/duplicate-post/

  2. chavo
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

    RF

  5. lopo
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.