This plugin allows users to clone posts of any type, or copy them to new drafts for further editing.
Як це працює:
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 viewing a post 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.
If you find this useful and if you want to contribute, there are two ways:
Use WordPress’ Add New Plugin feature, searching “Duplicate Post”, or download the archive and:
- Unzip the archive on your computer
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Settings -> Duplicate Post and customize behaviour as needed
Плагін не працює, чому?
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 some problems.
Pay also attention to the “Permissions” tab in the Settings: make sure the plugin is enabled for the desired roles and post types.
If it still doesn’t work, maybe there is some kind of conflict with other plugins: feel free to write in the forum 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 WordPress.org 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 untranslated strings, you can help translating to your language: you only need a WordPress.org account.
Учасники та розробники
“Yoast Duplicate Post” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:Учасники
- Converts the upgrade notice into a welcome notice for first-time users.
- Fixes a bug where HTML tags in a Custom HTML block would be removed when republishing a scheduled Rewrite & Republish copy.
- Fixes a bug where the button style would be broken in the Classic Editor.
- Fixes a bug where a fatal error would be triggered in the Widgets page in combination with some themes or plugins.
* Sets the WordPress tested up to version to 5.9.
- Fixes a bug where Rewrite & Republish copies could be displayed and queried in the front end.
- Fixes a bug where some strings where not translated.
- Fixes a bug where meta data went missing for duplicate posts created by the Rewrite & Republish feature. Props to ocean90.
- Fixes a bug where the plugin would not initialize if installed via composer.
- Replaces Mailchimp with MailBlue newsletter integration.
- Improved compatibility for PHP 8.0.
- Improved sort order of the taxonomies list on the options page.
- Most plugin files have been renamed. If you extend this plugin of include any of the files from the plugin from within your own plugin, you may need to adjust the file name used in the
- Allows plugins such as ACF to add fields to the “Compare changes” screen for Rewrite & Republish.
- Fixes a bug where the “Compare changes” screen for the Rewrite & Republish feature displayed a broken layout in WordPress 5.7.
- Fixes a bug where a post type enabled by filter couldn’t be copied.
- Fixes a bug where the “Show links in” settings were reset to the default value on version upgrade.
- Fixes a bug where editing posts with Elementor could trigger a fatal error.
- Improves compatibility between Elementor and the Rewrite and Republish feature.
- Fixes a bug where Rewrite & Republish notices would be shown for regular copies.
- Fixes a bug where the original post of a Rewrite & Republish copy was listed in the Yoast SEO Premium link suggestions.
- Disables the plugin for WooCommerce products and introduces filter for enabled post types.
- Fixes a bug where errors or notices could be triggered when using the plugin with some other plugins or custom code.
- Fixes a bug that caused a fatal error when used with some plugins.
- Introduces the Rewrite & Republish feature, offering you the possibility to update a post/page without taking it offline or having to take extra steps. This feature is currently not available when Elementor is active on your site.
- Introduces an integration with the Block Editor.
- Introduces new settings to individually enable/disable the
Rewrite & Republishlinks.
- Compatibility with WordPress 5.5
- Fixed bug about copying comments in WordPress 5.5
- Check user permission when adding option to the bulk actions dropdown list
- Improved update notice to be displayed only on selected screens when updating from < 3.2.5
- Updated template tag documentation link
- Added missing gettext to “Subscribe” button
- First release from Yoast
- Accessibility improvements to the settings page
- Accessibility improvements to the “Show original item” metabox
- Accessibility improvements to the “Show original item” check box in Quick Edit
- duplicate_post_blacklist_filter deprecated in favor of duplicate_post_excludelist_filter
- Options to show original item in post list (in a column or alongside post states) or in a metabox in the edit screen
- Accessibility improvements
- Small other fixes
- Fixes incompatibility with previous versions of CF7
- Now roles without edit_posts capability but having equivalent capability for custom post types can be allowed to copy
- Small other fixes to bugs that could lead to incompatibilities with WPML and others
- The “Admin bar” option shows the link in the post edit screen too, so you can use the plugin with Gutenberg enabled
- Option for “Slug” not set by default on new installations
- Better display of icon in the Admin bar on small screens
- Fixing some issues of the 3.* trunk before major redesign
- Fixes issue when upgrading on multisite
- Improved compatibility with WPML + page builders, thanks to WPML team
- Prevents creating a revision immediately after the cloning
- new website with extensive documentation
- WPML compatibility, thanks to WPML team
- improved Jetpack compatibility (Subscriptions, Markdown)
- small changes to hooks
- improved security with nonces
- various small fixes
- 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 WP.org’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
- Initial version on WP repository