
Cloning a page in WordPress can be useful when you want to duplicate an existing layout or content structure Clone a WordPress Page. Here’s a step-by-step guide to duplicating a WordPress page or post.
Methods to Duplicate a Page in WordPress
1. Using a Plugin (Recommended for Beginners)
WordPress offers several plugins that make duplicating pages quick and easy.
Popular Plugins to Duplicate a Page:
- Duplicate Page
- Yoast Duplicate Post
- Duplicate Post & Page
Steps to Duplicate a Page Using a Plugin:
- Install a Plugin
- Go to WordPress Dashboard → Plugins → Add New
- Search for “Duplicate Page” or “Duplicate Post”
- Click Install and then Activate
- Duplicate Your Page
- Navigate to Pages → All Pages
- Hover over the page you want to duplicate
- Click Duplicate or Clone
- Edit the Clone a WordPress Page
- You’ll find the duplicated Clone a WordPress Page listed as a draft
- Click Edit to make changes
2. Manually Copy & Paste (Without Plugins)
If you prefer not to use a plugin, you can duplicate a page manually.
Steps to Manually Clone a WordPress Page:
- Open the existing page
- Copy all content (text, images, and formatting)
- Go to Pages → Add New
- Paste the content into a new page
- Manually set up featured images, categories, and SEO settings
Tip: If you’re using a page builder like Elementor, WPBakery, or Gutenberg, use the built-in Save as Template feature to copy page layouts easily.
3. Using Elementor (For Elementor Users)
If your website is built with Elementor, duplicating a page is straightforward.
Steps to Clone a Page in Elementor:
- Open the page in Elementor Editor
- Click the Save as Template option
- Go to Pages → Add New
- Click Add Template and insert your saved template
4. Duplicating a WordPress Page with Code (For Developers)
If you don’t want to install a plugin and need a more advanced method, you can add a custom function to your functions.php
file.
Steps to Duplicate a Page with Code:
- Go to Appearance → Theme Editor
- Open
functions.php
- Add the following code:
function duplicate_post_as_draft(){
global $wpdb;
if (!isset($_GET['post']) || !isset($_REQUEST['action']) || 'duplicate_post_as_draft' !== $_REQUEST['action']) {
wp_die('No post to duplicate has been supplied!');
}
$post_id = absint($_GET['post']);
$post = get_post($post_id);
if (!$post) {
wp_die('Post creation failed, could not find original post.');
}
$new_post = array(
'post_title' => $post->post_title . ' (Copy)',
'post_content' => $post->post_content,
'post_status' => 'draft',
'post_type' => $post->post_type,
);
$new_post_id = wp_insert_post($new_post);
wp_redirect(admin_url('edit.php?post_type=' . $post->post_type));
exit;
}
add_action('admin_action_duplicate_post_as_draft', 'duplicate_post_as_draft');
- Save the file, and you’ll now have the option to duplicate posts/pages from the admin panel.
Frequently Asked Questions (FAQs)
Q: Can I duplicate a page in WordPress without a plugin?
A: Yes! You can manually copy and paste content or use the Elementor template feature if applicable.
Q: Can I duplicate pages in WooCommerce?
A: Yes! WooCommerce products can be duplicated using the built-in “Duplicate” option under “Products.”
Q: Does duplicating a page affect SEO?
A: Yes, if the duplicated page remains indexed by search engines. To avoid duplicate content issues, make sure to modify the title, meta description, and content.