duplicate-post
Last commit date
compat
3 months ago
css
3 months ago
js
3 months ago
src
3 months ago
vendor
2 months ago
admin-functions.php
3 months ago
common-functions.php
3 months ago
duplicate-post.php
2 months ago
duplicate_post_yoast_icon-125x125.png
5 years ago
gpl-2.0.txt
14 years ago
options.php
3 months ago
readme.txt
2 weeks ago
readme.txt
135 lines
| 1 | === Yoast Duplicate Post === |
| 2 | Contributors: yoast, lopo |
| 3 | Donate link: https://yoast.com/wordpress/plugins/duplicate-post/ |
| 4 | Tags: duplicate post, copy, clone |
| 5 | Requires at least: 6.8 |
| 6 | Tested up to: 7.0 |
| 7 | Stable tag: 4.6 |
| 8 | Requires PHP: 7.4 |
| 9 | License: GPLv2 or later |
| 10 | License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 11 | |
| 12 | The go-to tool for cloning posts and pages, including the powerful Rewrite & Republish feature. |
| 13 | |
| 14 | == Description == |
| 15 | |
| 16 | This plugin allows users to clone posts of any type, or copy them to new drafts for further editing. |
| 17 | |
| 18 | How it works: |
| 19 | |
| 20 | 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. |
| 21 | |
| 22 | 2. 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. |
| 23 | |
| 24 | 3. In 'Edit Posts'/'Edit Pages', you can click on 'New Draft' link below the post/page title. |
| 25 | |
| 26 | 4. On the post edit screen, you can click on 'Copy to a new draft' above "Cancel"/"Move to trash" or in the admin bar. |
| 27 | |
| 28 | 5. While viewing a post as a logged in user, you can click on 'Copy to a new draft' in the admin bar. |
| 29 | |
| 30 | 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. |
| 31 | |
| 32 | 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. |
| 33 | |
| 34 | Duplicate Post has many useful settings to customize its behavior and restrict its use to certain roles or post types. Check out the extensive documentation on [yoast.com](https://yoast.com/wordpress/plugins/duplicate-post/) and our [developer docs](https://developer.yoast.com/duplicate-post/overview/). |
| 35 | |
| 36 | == Installation == |
| 37 | |
| 38 | Use WordPress' Add New Plugin feature, searching "Duplicate Post", or download the archive and: |
| 39 | |
| 40 | 1. Unzip the archive on your computer |
| 41 | 2. Upload `duplicate-post` directory to the `/wp-content/plugins/` directory |
| 42 | 3. Activate the plugin through the 'Plugins' menu in WordPress |
| 43 | 4. Go to Settings -> Duplicate Post and customize behaviour as needed |
| 44 | |
| 45 | == Frequently Asked Questions == |
| 46 | |
| 47 | = The plugin doesn't work, why? = |
| 48 | |
| 49 | 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! |
| 50 | |
| 51 | Then try to deactivate and re-activate it, some user have reported that this fixes some problems. |
| 52 | |
| 53 | Pay also attention to the "Permissions" tab in the Settings: make sure the plugin is enabled for the desired roles and post types. |
| 54 | |
| 55 | If it still doesn't work, maybe there is some kind of conflict with other plugins: feel free [to write in the forum](https://wordpress.org/support/plugin/duplicate-post) 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). |
| 56 | |
| 57 | = The plugin is not translated in my language! = |
| 58 | |
| 59 | From version 3.0 the plugin's translations are managed by the WordPress.org platform and the plugin is shipped without language files, so first of all update translations under Dashboard->Updates. |
| 60 | |
| 61 | If Duplicate Post is still in English, or if there are some untranslated strings, you can [help translating to your language](https://translate.wordpress.org/projects/wp-plugins/duplicate-post): you only need a WordPress.org account. |
| 62 | |
| 63 | == Screenshots == |
| 64 | |
| 65 | 1. Classic editor. |
| 66 | 2. Block editor. |
| 67 | 3. Post list. |
| 68 | 4. Admin bar menu. |
| 69 | 5. Bulk actions. |
| 70 | 6. The options page. |
| 71 | |
| 72 | == Changelog == |
| 73 | |
| 74 | = 4.6 = |
| 75 | |
| 76 | Release date: 2026-03-09 |
| 77 | |
| 78 | Introduces smoother post duplication, more reliable rewrite workflows, and better compatibility across languages and configurations. [Read more here!](https://yoa.st/563) |
| 79 | |
| 80 | #### Enhancements |
| 81 | |
| 82 | * Improves the compatibility with the Block Editor. |
| 83 | * Improves the style of the _Copy to a new draft_ and _Rewrite & Republish_ actions in the Block Editor. |
| 84 | * Replaces the metabox with a sidebar panel in the Block Editor. |
| 85 | |
| 86 | #### Bugfixes |
| 87 | |
| 88 | * Fixes a bug where cloning an attachment did not copy its caption as expected. Props to @masteradhoc. |
| 89 | * Fixes a bug where cloning an attachment did not copy its description as expected. |
| 90 | * Fixes a bug where notices would not be appearing in the block editor, throwing console errors, with some locales. |
| 91 | * Fixes a bug where Rewrite & Republish copies could remain orphaned, blocking editors from creating a new Rewrite & Republish copy for the original post. |
| 92 | * Fixes a bug where the block editor button were not styled if the admin bar links where not present. |
| 93 | * Fixes a bug where translations where missing in the buttons and the notices in the Block Editor. Props to @petitphp. |
| 94 | |
| 95 | #### Other |
| 96 | |
| 97 | * Improves security of the Bulk Clone action and the republishing of a copy. |
| 98 | * Adds `duplicate_post_before_republish` and `duplicate_post_after_republish` action hooks fired before and after republishing. Props to @piscis. |
| 99 | * Deprecates the `dp_duplicate_post` and `dp_duplicate_page` hooks and introduces a new unified `duplicate_post_after_duplicated` action hook that replaces them. The new hook includes the post type as a fourth parameter for flexible filtering. |
| 100 | * Sets the minimum supported WordPress version to 6.8. |
| 101 | * Sets the WordPress tested up to version to 6.9. |
| 102 | * Drops compatibility with PHP < 7.4. |
| 103 | * Verified compatibility with PHP up to version 8.5. |
| 104 | * Fixes the Developer Guide link that was leading to a non-existent page. Props to @masteradhoc. |
| 105 | * Fixes the documentation link to use a shortlink. Props to @masteradhoc. |
| 106 | * Improves how the translations are loaded by relying on the WordPress mechanism for that. Props to @swissspidy. |
| 107 | * Improves discoverability of security policy in Packagist. |
| 108 | * Users requiring this package via [WP]Packagist can now use the `composer/installers` v2. |
| 109 | |
| 110 | = 4.5 = |
| 111 | |
| 112 | Release date: 2022-06-28 |
| 113 | |
| 114 | #### Enhancements |
| 115 | |
| 116 | * Improves the impact of the plugin on the performance of the site by avoiding useless calls on the `gettext` filter. |
| 117 | |
| 118 | #### Bugfixes |
| 119 | |
| 120 | * Fixes a bug where a section in the Classic Editor's submitbox would be displayed with incorrect margins. |
| 121 | |
| 122 | #### Other |
| 123 | |
| 124 | * Sets the WordPress tested up to version to 6.0. |
| 125 | |
| 126 | = Earlier versions = |
| 127 | For the changelog of earlier versions, please refer to [the changelog on yoast.com](https://yoa.st/duplicate-post-changelog). |
| 128 | |
| 129 | == Contribute == |
| 130 | |
| 131 | If you find this useful and if you want to contribute, there are two ways: |
| 132 | |
| 133 | 1. Submit your bug reports, suggestions and requests for features on [GitHub](https://github.com/Yoast/duplicate-post); |
| 134 | 2. If you want to translate it to your language (there are just a few lines of text), you can use the [translation project](https://translate.wordpress.org/projects/wp-plugins/duplicate-post); |
| 135 |