# Clone & Duplicate Posts

A simple and effective WordPress plugin to clone posts, pages and custom post types with a single click.

## Description

Clone & Duplicate Posts allows you to quickly duplicate any post, page, or custom post type in WordPress. Perfect for creating similar content or using existing posts as templates.

## Features

- ✅ Clone posts, pages and custom post types with one click
- ✅ Works with all public post types
- ✅ Duplicate button in posts list and editor
- ✅ Complete copy of content, excerpt, and settings
- ✅ Duplicates categories, tags, and custom taxonomies
- ✅ Copies featured image
- ✅ Copies custom fields (post meta)
- ✅ Cloned items are created as drafts
- ✅ Security with permission checks and nonce verification

## Installation

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins menu in WordPress
3. That's it! You can now clone posts, pages and custom post types

## Usage

### From Posts List
1. Go to Posts, Pages or any custom post type list
2. Hover over any item
3. Click "Clone"

### From Editor
1. Open any post, page or custom post type
2. Look for the "Clone" metabox in the sidebar
3. Click "Clone this [Post Type]"

The duplicated item is created as a draft and opens automatically in the editor.

## Requirements

- WordPress 5.0 or higher
- PHP 7.2 or higher

## Frequently Asked Questions

**Does it clone categories and tags?**  
Yes, all taxonomies including categories, tags, and custom taxonomies are cloned.

**Is the featured image copied?**  
Yes, the featured image is automatically copied to the duplicated post.

**What status does the cloned post have?**  
The cloned post is created as a draft so you can review it before publishing.

**Does it work with custom post types?**  
Yes! The plugin automatically works with all public post types.

## Changelog

### 1.0.0
- Initial release
- Clone posts, pages and custom post types
- Complete content duplication
- Copy of taxonomies and featured image
- Copy of custom fields
- Button in lists and editor for all post types

## Author

**Alexei Haberli**  
- Website: [fullstackdev.es](https://fullstackdev.es/)
- WordPress.org: [alexeihaberli](https://profiles.wordpress.org/alexeihaberli/)

## License

This plugin is licensed under the GPL v2 or later.

> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
>
> This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

## Support

- [WordPress.org Plugin Page](https://wordpress.org/plugins/clone-duplicate-posts/) (pending approval)
- [GitHub Issues](https://github.com/alexeihaberli/clone-duplicate-posts/issues)
