Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mahidulislamtamim/wp-plugin-aide-duplicatepost/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Duplicate WordPress posts and pages from the wp-admin list table with a single click.
Features
- Duplicate action on:
- Posts → All Posts
- Pages → All Pages
- Creates a new Draft and redirects to the edit screen
- Copies:
- Title, content, excerpt
- Parent / menu order
- Comment + ping status
- Password (if set)
- Taxonomies/terms (categories, tags, custom taxonomies)
- Post meta (including featured image via
_thumbnail_id)
- Uses WordPress best practices:
- Capability checks
- Nonce verification
wp_safe_redirect()on completion
Requirements
- WordPress 5.x+ (recommended: latest)
- PHP 7.4+ (recommended: 8.x)
Installation
Option A: Install from ZIP
- Download this repository as a ZIP.
- In wp-admin, go to Plugins → Add New → Upload Plugin.
- Upload the ZIP and activate Aide :: Duplicate Post.
Option B: Manual install
- Copy the plugin folder to:
wp-content/plugins/aide-duplicatepost/
- Activate the plugin in Plugins → Installed Plugins.
Usage
- Go to Posts → All Posts or Pages → All Pages.
- Hover a row and click Duplicate.
- A new Draft is created and opened in the editor.
What gets duplicated (details)
- Post fields:
post_title,post_content,post_excerpt,post_parent,menu_order,comment_status,ping_status,post_password,post_content_filtered - Taxonomies: all taxonomies registered to the post type (terms copied by ID)
- Meta: all keys except:
_edit_lock_edit_last_wp_old_slug
Security notes
- Only users who can edit that post type can duplicate items.
- Requests are protected with a WordPress nonce.
Development
- Main plugin file:
function.php - Admin action hook:
admin_action_aide_duplicate_post - Row action key:
aide_duplicate_post
Contributing
- Fork the repo
- Create a feature branch
- Open a Pull Request with a clear summary and test plan
License
Add a license file to match your distribution needs (e.g. GPL-2.0-or-later for WordPress.org compatibility).