How to Clone a WordPress Page

3 minutes read
How to Clone a WordPress Page

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:

Steps to Duplicate a Page Using a Plugin:

  1. Install a Plugin
    • Go to WordPress DashboardPluginsAdd New
    • Search for “Duplicate Page” or “Duplicate Post”
    • Click Install and then Activate
  2. Duplicate Your Page
    • Navigate to PagesAll Pages
    • Hover over the page you want to duplicate
    • Click Duplicate or Clone
  3. 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:

  1. Open the existing page
  2. Copy all content (text, images, and formatting)
  3. Go to PagesAdd New
  4. Paste the content into a new page
  5. 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:

  1. Open the page in Elementor Editor
  2. Click the Save as Template option
  3. Go to PagesAdd New
  4. 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:

  1. Go to AppearanceTheme Editor
  2. Open functions.php
  3. 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');
  1. 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.

Share it :

Leave a Reply

Your email address will not be published. Required fields are marked *