=== Duplicate Page and Post ===
Contributors: arjunthakur, efficientninja
Tags: duplicate post, duplicate page, clone post, clone page, duplicate custom posts
Requires at least: 3.5
Tested up to: 7.1
Requires PHP: 5.6
Stable tag: 2.9.6
Version: 2.9.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easily duplicate or clone pages, posts and custom post types with one click. Choose the status, add a title suffix, and edit your new copy.

== Description ==

Duplicate pages, posts and custom post types with just one click.

Duplicate Page and Post makes it easy to create a copy of existing WordPress content without manually recreating the title, content, featured image, custom fields and taxonomies.

Simply use the **Duplicate** option from the WordPress admin area and a new copy of your content will be created. You can then make the required changes to the duplicate without affecting the original post or page.

The plugin also gives you control over how duplicates are created, including their post status, title suffix and what happens after duplication.

### Key Features

* **One-click duplication** - Quickly create a copy of an existing page, post or supported custom post type.
* **Duplicate pages and posts** - Create copies of existing WordPress content without starting from scratch.
* **Custom post type support** - Duplicate supported custom post types along with their associated content.
* **Choose duplicate status** - Save new duplicates as Draft, Published, Private, Pending or another available status.
* **Copy post metadata** - Duplicate custom fields and metadata from the original content.
* **Copy taxonomies** - Preserve categories, tags and supported taxonomy assignments on the duplicate.
* **Featured image support** - Keep the featured image when creating a duplicate.
* **Title suffix** - Add custom text to the duplicate title to easily identify the new copy.
* **Custom duplicate link text** - Choose the text displayed for the duplicate action.
* **Flexible redirect options** - Choose where to go after creating a duplicate.

Duplicate Page and Post is designed to keep content duplication simple and fast while fitting naturally into the WordPress admin experience.

== Installation ==

1. Install and activate the plugin through the **Plugins** screen in WordPress.
2. Go to **Settings > Duplicate Page and Post** to configure the plugin.
3. Open the Pages, Posts or supported custom post type screen.
4. Hover over the content you want to duplicate.
5. Click **Duplicate**.
6. The new copy will be created using the status selected in the plugin settings.
7. Edit the duplicate as needed.

No additional setup is required.

== Frequently Asked Questions ==

= How do I duplicate a page or post? =

After activating the plugin, go to **Pages**, **Posts**, or a supported custom post type in your WordPress dashboard. Hover over the item you want to duplicate and click **Duplicate**.

= Can I duplicate custom post types? =

Yes. The plugin supports duplication of supported custom post types.

= Can I choose the status of the duplicate? =

Yes. You can choose the status for new duplicates from the plugin settings, including Draft, Published, Private and Pending where supported.

= Will duplicating a post change the original? =

No. The original page or post remains unchanged. The plugin creates a separate copy that you can edit independently.

= Will the duplicate include custom fields and taxonomies? =

The plugin copies the supported post metadata and taxonomy assignments from the original content to the duplicate.

= Can I add text to the duplicate title? =

Yes. You can configure a title suffix in the plugin settings to make duplicated content easier to identify.

= Can I change what happens after duplication? =

Yes. You can configure the redirect behavior after creating a duplicate from the plugin settings.

== Upgrade Notice ==

= 2.9.6 =
**Recommended update:** This release includes important security fixes, improved authorization and input validation, and compatibility and reliability improvements. Existing plugin settings and content are preserved during the update.

== Changelog ==

= 2.9.6 =
* Security fixes for SQL injection vulnerabilities.
* Improved authorization checks when duplicating posts, pages and custom post types.
* Improved input validation and output escaping.
* Fixed an activation warning on fresh installations.
* Preserved existing plugin settings during activation and upgrades.
* Preserved existing option keys and values when saving plugin settings.
* Improved post metadata and taxonomy duplication.
* Added error handling for failed post creation.
* Fixed settings save behavior and added a success message.
* Improved compatibility with current WordPress versions.
* Maintained PHP 5.6-compatible plugin code syntax.

= 2.9.2 and earlier =
* Previous versions included various improvements, bug fixes and compatibility updates.

== Screenshots ==

1. screenshot1.png
2. screenshot2.png
3. screenshot3.png
4. screenshot4.png