Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Duplicate Post

Clone posts and pages.

This plugin allows to clone a post or page, or edit it as a new draft. If you find this useful, please consider donating whatever sum you choose, even just 10 cents. It's been downloaded thousands of times: just a few cents from every user would help me develop the plugin and improve support.

How it works:

  1. In 'Edit Posts'/'Edit Pages', you can click on 'Clone' link below the post/page title: this will immediately create a copy and return to the list.

  2. NEW! In 'Edit Posts'/'Edit Pages', you can select one or more items, then choose 'Clone' in the 'Bulk Actions' dropdown to copy them all at once.

  3. In 'Edit Posts'/'Edit Pages', you can click on 'New Draft' link below the post/page title.

  4. On the post edit screen, you can click on 'Copy to a new draft' above "Cancel"/"Move to trash".

  5. While viewing a post as a logged in user, you can click on 'Copy to a new draft' as a dropdown link under "Edit Post" in the admin bar.

3, 4 and 5 will lead to the edit page for the new draft: change what you want, click on 'Publish' and you're done.

There is also a template tag, so you can put it in your templates and clone your posts/pages from the front-end. Clicking on the link will lead you to the edit page for the new draft, just like the admin bar link.

In the Options page under Settings it is now possible to choose what to copy, and you can also set a prefix (or a suffix) to place before (or after) the title of the cloned post/page.

You can also restrict the plugin to certain post types, and allow only some roles to clone posts or pages.

If you want to contribute to translate the plugin in languages other than English, there is a translation project available: contact me if you wish to become an editor for your language.

If you're a plugin developer, I suggest to read the section made just for you under "Other Notes", to ensure compatibility between your plugin(s) and mine.

Thanks for all the suggestions, bug reports, translations and donations, they're frankly too many to be listed here!

Author Enrico Battocchi
Contributors lopo
Tags clone, copy, duplicate post
  1. duplicate-post screenshot 1

    Here you can copy the post you're editing to a new draft.

  2. duplicate-post screenshot 2

    By clicking on "Clone" the post is cloned immediately. "New draft" leads to the edit screen.

  3. duplicate-post screenshot 3

    The options page.

  4. duplicate-post screenshot 4

    The template tag manually added to Twenty Ten theme. Click on the "Copy to a new draft" link and you're redirected to the edit screen for a new draft copy of your post.

  5. duplicate-post screenshot 5

    The admin bar link.

  6. duplicate-post screenshot 6

    Bulk clone action.

Use WordPress' Add New Plugin feature, searching "Duplicate Post", or download the archive and:

  1. Unzip the archive on your computer
  2. Upload duplicate-post directory to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Go to Settings -> Duplicate Post and customize behaviour as needed


  • Fix for custom fields not copied


  • Fix for nasty update nag (plus a failsafe checkbox)


  • Bulk clone action added (WP 4.7+)
  • Wildcards enabled for custom fields to skip
  • Options to copy post author, post format (moved from taxonomies), menu order, post template
  • Check publish_posts/publish_pages capability to prevent Contributors from publishing by cloning
  • Using wp_slash (WP 3.6+) or a better workaround (WP 4.4+) on the post and its meta, should also fix some compatibility issues
  • Check if admin bar is showing before enqueueing CSS
  • Probable fix for repeated clone bug
  • Other minor bugs fixed


  • Notices in admin after copying
  • Fixes warning in custom post type archives
  • Uses site options for version and notice
  • Minor fixes


  • Can now be enabled for every custom post type with visible UI (not just public ones)
  • Admin bar CSS only enqueued when needed
  • New "Donate" button
  • Fixes for minor bugs and typos


  • Fixes the issues for people upgrading from an older version


  • Settings page redesigned
  • More options to enable/disable copy of every part of a post
  • Enable/disable cloning for every custom post type
  • Jetpack Publicize compatibility
  • Fixed a possible XSS
  • Fixed other little bugs
  • Translations removed to use's official translation project
  • Checked PHP 7 compatibility


  • PHP 5.4 (Strict Standards) compatible
  • Fixed possible XSS and SQL injections
  • other bugs
  • Updated and added translations
  • Tested up to WP 3.8.1


  • Fixed regression about draft permalinks
  • Fixed bug with guid
  • Don't clone to_ping and pinged (maybe there will be an option about those later)


  • New option to clone the children of the original page
  • Licence changed to GPLv2 or later
  • Fixed publishing dates for drafts
  • Fixed bug with prefix/suffix
  • Translation project moved to GlotPress


  • Added options to choose where to show the "Clone" links
  • Clone attachments (i.e. references in the DB, not physical files)
  • Fix for untranslated user roles
  • Some other fixes (missing checks, PHP warnings and errors, etc.)


  • Fix for problems when copying serialized meta fields
  • Fix for multiple _dp_original field
  • Removed deprecated parameter when adding options


  • Can't rely on activation hook for upgrade, this caused problems with new options


  • Even more code cleaning (no more custom queries, using WP API)
  • Term order preserved when copying
  • Stopped using deprecated User levels, now it uses Roles and Capabilities
  • 'Copy to a new draft' link in admin bar
  • duplicate_post_get_original template tag
  • Settings link in plugin list, 'Donate' and 'Translate' link in option page


  • Fixed bug for permalinks
  • Two links on posts list: clone immediately or copy to a new draft to edit.
  • Tested on multisite mode.


  • Fixed bug for action filters
  • New option so you can choose if cloning from the posts list must copy the post status (draft, published, pending) too.


  • WP 3.3 compatibility (still not tested against multiblog feature, so beware)
  • Minimum WP version: 3.0
  • Code cleanup
  • Immediate cloning from post list
  • Added options for taxonomies and post excerpt
  • Added suffix option
  • Added template tag


  • WP 3.1.1 compatibility (still not tested against multiblog feature, so beware)
  • Added complete Polish language files


  • Plugin split in two files for faster opening in Plugins list page
  • fix conflicts with a few other plugins
  • Added Dutch language files


  • WP 3.0 compatibility (not tested against multiblog feature, so beware)
  • Option page: minimum user level, title prefix, fields not to be copied, copy post/page date also
  • Added German, Swedish, Romanian, Hebrew, Catalan (incomplete) and Polish (incomplete) language files


  • Better integration with WP 2.7+ interface
  • Added actions for plugins which store post metadata in self-managed tables
  • Added French and Spanish language files
  • Dropped WP 2.6.5 compatibility


  • Tested WP 2.9 compatibility


  • Fix for WP 2.8.1
  • WPMU compatibility
  • Internationalization (Italian and Japanese language files shipped)


  • Fix for post-meta
  • WP2.7 compatibility


  • Support for new WP post revision feature

The plugin doesn't work, why?

First, check your version of WordPress: the plugin is not supposed to work on old versions anymore. Make sure also to upgrade to the last version of the plugin!

Then try to deactivate and re-activate it, some user have reported that this fixes the problem.

Pay also attention to the new "Roles allowed to copy" option: it should convert the former "user level" option to the new standard, but unknown problems may arise. Make sure that your role is enabled.

From version 3.0 onwards, post types must be enabled in the Options: check them as well.

If not, maybe there is some kind of conflict with other plugins: feel free to write me and we'll try to discover a solution (it will be really helpful if you try to deactivate all your other plugins one by one to see which one conflicts with mine... But do it only if you know what you're doing, I will not be responsible of any problem you may experience).

The plugin is not translated in my language!

From version 3.0 the plugin's translations are managed by the platform and the plugin is shipped without language files, so first of all update translations under Dashboard->Updates.

If Duplicate Post is still in English, or if there are some untraslated strings, you can help traslating to your language here: you only need a account. Contact me if you wish to become an editor for your language.

Template tags

I have added the template tag duplicate_post_clone_post_link( $link, $before, $after, $id ), which behaves just like edit_post_link(). That means that you can put it in your template (e.g., in single.php or page.php) so you can get a "Clone" link when displaying a post or page.

The parameters are:

  • link (string) (optional) The link text. Default: __('Clone','duplicate-post')

  • before (string) (optional) Text to put before the link text. Default: None

  • after (string) (optional) Text to put after the link text. Default: None

  • id (integer) (optional) Post ID. Default: Current post ID

Another available template tag is duplicate_post_get_original($id, $output) which returns the original post, either as a post object, an associative array or a numeric array (depending on the $output parameter), just as get_post() does.


relies on the _dp_original custom field.

Action hooks

From version 1.0 onwards, thanks to Simon Wheatley's suggestion, Duplicate Post adds two action hooks (dp_duplicate_post and dp_duplicate_page) which can be used by other developers if their plugins store extra data for posts in non-standard WP tables. Since Duplicate Post knows only of standard WP tables, it can't copy other data relevant to the post which is being copied if this information is stored elsewhere. So, if you're a plugin developer which acts this way, and you want to ensure compatibility with Duplicate Post, you can hook your functions to those actions to make sure that they will be called when a post (or page) is cloned.

It's very simple. Just write your function that copies post metadata to a new row of your table:

function myplugin_copy_post($new_post_id, $old_post_object){
/* your code */

Then hook the function to the action:

add_action( "dp_duplicate_post", "myplugin_copy_post", $priority, 2);

dp_duplicate_page is used for pages and hierarchical custom post types; for every other type of posts, dp_duplicate_post is used.

Please refer to the Plugin API for every information about the subject.


If you find this useful and if you want to contribute, there are three ways:

  1. You can write me and submit your bug reports, suggestions and requests for features;
  2. If you want to translate it to your language (there are just a few lines of text), you can use the translation project;
  3. Using the plugin is free, but if you want you can support my efforts by donating with PayPal here
Version 3.1.2

Requires WordPress version: 3.6 or higher

Compatible up to: 4.7.2

Last Updated 15 Jan 2017

Date Added: 05 Dec 2007

Plugin Homepage


4.9 stars
292 ratings


Not Enough Data

Works: 0
Broken: 0