Duplicate Post

説明

This plugin allows users to clone posts of any type, or copy them to new drafts for further editing.
If you find this useful, please consider donating whatever sum you choose, even just 10 cents. Just a few cents from every user would help me develop the plugin and improve support.

使い方:

  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.

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 the plugin’s site.

If you’re a plugin developer, I suggest you to read the Developer’s Guide to ensure compatibility between your plugin(s) and mine. Feel free to contact me so we can keep in touch and collaborate.

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

貢献

もしこれがあなたにとって便利で、貢献したいと思えば、3つの方法があります:

  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

スクリーンショット

  • Here you can copy the post you're editing to a new draft.
  • By clicking on "Clone" the post is cloned immediately. "New draft" leads to the edit screen.
  • 設定ページ。
  • 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.
  • The admin bar link.
  • Bulk clone action.

インストール

WordPressの「新しいプラグインの追加」機能を使用して「Duplicate Post」を検索するか、アーカイブをダウンロードして:

  1. コンピューター上でアーカイブを解凍します
  2. Upload duplicate-post ディレクトリを /wp-content/plugins/ ディレクトリにアップロードします
  3. WordPress の「プラグイン」メニューからプラグインを有効化してください
  4. Go to Settings -> Duplicate Post and customize behaviour as needed

FAQ

インストール手順

WordPressの「新しいプラグインの追加」機能を使用して「Duplicate Post」を検索するか、アーカイブをダウンロードして:

  1. コンピューター上でアーカイブを解凍します
  2. Upload duplicate-post ディレクトリを /wp-content/plugins/ ディレクトリにアップロードします
  3. WordPress の「プラグイン」メニューからプラグインを有効化してください
  4. Go to Settings -> Duplicate Post and customize behaviour as needed
プラグインが動作しません、なぜですか?

まず、あなたのWordPressのバージョンをチェックしてください。プラグインは古いバージョンでは動作しません。プラグインの最新バージョンにアップグレードすることも忘れないでください!

その後、無効にして再度有効にしてください。これにより、問題が修正されたという報告があります。

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).

プラグインが私の言語で翻訳されていません!

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 untraslated strings, you can help traslating to your language here: you only need a WordPress.org account.
Contact me if you wish to become an editor for your language.

評価

Great!

Does what I expected to do. Thank you!

Indespensable

I’m a WP developer and I use this plugin on every WordPress site I create. It’s totally solid and reliable and saves lots of time…especially with things like custom post types where you often need to re-use posts.

Essential

One of those plugins that I always find myself installing no matter what I’m building.

335件のレビューをすべて表示

貢献者と開発者

Duplicate Post はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Duplicate Post” は27ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Duplicate Post” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

3.2 (2017-04-04)

  • 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

3.1.2 (2016-12-13)

  • Fix for custom fields not copied

3.1.1 (2016-12-13)

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

3.1 (2016-12-13)

  • 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

3.0.3 (2016-10-29)

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

3.0.2 (2016-10-18)

  • 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

3.0.1 (2016-10-09)

  • 古いバージョンからアップグレードする人のための問題を修正

3.0 (2016-10-09)

  • 設定ページを再設計
  • More options to enable/disable copy of every part of a post
  • Enable/disable cloning for every custom post type
  • Jetpack Publicize compatibility
  • XSS の可能性を修正
  • その他の小さなバグを修正
  • Translations removed to use WP.org’s official translation project
  • Checked PHP 7 compatibility

2.6 (2014-04-27)

  • PHP 5.4 (Strict Standards) compatible
  • Fixed possible XSS and SQL injections
  • その他のバグ
  • 翻訳の更新と追加
  • Tested up to WP 3.8.1

2.4.1 (2014-02-22)

  • 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)

2.4 (2012-04-29)

  • 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

2.3 (2012-04-06)

  • 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.)

2.2 (2012-02-01)

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

2.1.1 (2012-01-04)

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

2.1 (2012-01-03)

  • 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

2.0.2 (2011-12-12)

  • パーマリンクのバグを修正
  • Two links on posts list: clone immediately or copy to a new draft to edit.
  • Tested on multisite mode.

2.0.1 (2011-12-08)

  • 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.

2.0 (2011-12-08)

  • 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
  • テンプレートタグを追加

1.1.2 (2011-04-08)

  • WP 3.1.1 compatibility (still not tested against multiblog feature, so beware)
  • ポーランド語の完全な言語ファイルを追加

1.1.1 (2010-06-30)

  • Plugin split in two files for faster opening in Plugins list page
  • いくつかの他のプラグインとの衝突を修正
  • オランダ語ファイルを追加

1.1 (2010-06-24)

  • 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

1.0 (2010-06-15)

  • Better integration with WP 2.7+ interface
  • Added actions for plugins which store post metadata in self-managed tables
  • フランス語とスペイン語の言語ファイルを追加
  • Dropped WP 2.6.5 compatibility

0.6.1 (2009-12-03)

  • Tested WP 2.9 compatibility

0.6 (2007-07-21)

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

0.5 (2009-01-09)

  • Fix for post-meta
  • WordPress 2.7 との互換性

0.4 (2008-11-23)

  • Support for new WP post revision feature

0.3 (2008-03-01)

  • Initial version on WP repository