WordPress.org

Ready to get started?Download WordPress

Forums

Duplicate Post
auto-clone via template?? (2 posts)

  1. tharpa.osang
    Member
    Posted 2 years ago #

    I was wondering if Duplicate Post could be used to clone multiple content types in draft mode with one click.

    I have various post types that interact, and work as a together - about 20 or so posts. I would like to clone the "team" and then go back and edit them later.

    I am able to select all the posts I wish to clone, but the template options are for generating links that clone when clicked. Is it possible to clone the posts via cURL using the url layout "http://some-site.com/wp-admin/admin.php?action=duplicate_post_save_as_new_post_draft&post=384" and just cycle through the whole list replacing just the post=384?? This is of course assuming that the person clicking on the link is logged in and has admin priviledges.....

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

  2. lopo
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    if only WP had custom bulk actions enabled your problem would be almost solved, but (as you can see in the second FAQ) you would have to edit the core.

    Surely you can clone the posts with e.g. a foreach cycle, but you would have to use "http://some-site.com/wp-admin/admin.php?action=duplicate_post_save_as_new_post&post=384" (not duplicate_post_save_as_new_post_draft).
    That call is answered with a redirect to the post list, so if you discard the response you're done.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic