Duplicate Post plugin for WordPress https://yoast.com/wordpress/plugins/duplicate-post/
This WordPress plugin allows users to clone posts of any type, or copy them to new drafts for further editing.
This document addresses the GitHub repository. WordPress.org uses the readme.txt file.
- Click on Plugins → Add New;
- Search for "Duplicate Post" using the top right searchbox;
- Click on the Install Now button;
- Click on Activate;
- Go to Settings → Duplicate Post and customize behaviour as needed.
- Download the archive from https://wordpress.org/plugins/duplicate-post/ (latest stable) or the latest snapshot ZIP from GitHub;
- Unzip the archive on your computer;
- Upload the
duplicate-post
directory into the/wp-content/plugins/
directory; - Activate the plugin through the Plugins page in WordPress Dashboard;
- Go to Settings → Duplicate Post and customize behaviour as needed.
- 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.
- 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.
- In Edit Posts/Edit Pages, you can click on New Draft link below the post/page title.
- On the post edit screen, you can click on Copy to a new draft above Cancel/Move to trash or in the admin bar.
- While editing a post or viewing it as a logged-in user, you can click on Copy to a new draft 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.
For functions, template tags and hooks refer to the Developer's Guide on our developer site.
The Duplicate Post plugin was created by Enrico Battocchi (Lopo). It's maintained by Team Yoast, of which Enrico is now a part.
If you find this useful and if you want to contribute, there are three ways:
- You can submit your bug reports, suggestions and requests for features on GitHub;
- You can also submit a pull request;
- If you want to translate it to your language (there are just a few lines of text), you can use the translation project;