How to Duplicate a Page or Post in WordPress

Duplicating a page or post in WordPress can mean more than simply copying and pasting the content. You can also retain the page template, SEO data, and images, in order to save time when redesigning your website or updating your content.

Fortunately, duplicating pages and posts and all their associated data in WordPress can be easy. There are simple ways to get the job done, both with and without a plugin.

In this article, we’ll look at how to clone a page or post safely, and introduce some plugins that can help. Let’s jump right in!

Easily Clone a Page in WordPress with These Plugins

Cloning a page in WordPress is very simple when you use a plugin, because everything is done right in your dashboard. Plugins are also the safest way to duplicate a post or page, since you won’t be modifying your site’s code directly.

If you’re looking for the right tool, here are four plugins that are worth checking out.

One of the go-to options for WordPress page and post cloning is Duplicate Post. This plugin is easy to use, and clones everything from the content of the page or post to the associated comments. It also offers a prefix or suffix option, to differentiate your original post and the clone.

To duplicate a post with this tool, you just need to:

Install and activate the plugin.

In your WordPress dashboard, go to Posts > All when cloning posts, or Pages > All when cloning pages.

Navigate to the page or post you want to copy, and click on Clone to duplicate it.

Multiple pages or posts can be selected, and you can clone them all at once using Bulk Actions.

Duplicate Page and Post does not have a lot of features, but makes up for that in speed. This lightweight plugin is one of the fastest ways to clone a post or page in WordPress, and won’t weigh your site down with unnecessary bells and whistles.

To clone a page or post with this plugin, use the following steps:

Install and activate the plugin.

Go to Posts > All or Pages > All, depending on what you want to duplicate.

Duplicate Page offers a few additional features that some other cloning plugins don’t provide. This plugin will duplicate posts, pages, and custom post types. Plus, you can save the resulting copies as drafts, pending, public, or private.

To use Duplicate Page, you just need to:

Install and activate the plugin.

Configure its settings to meet your needs.

Go to Pages > All or Posts > All to find the content you want to duplicate.

Another simple cloning plugin is Post Duplicator. This solution creates an exact duplicate of any post or page, including custom post types, custom fields, and custom taxonomies. It’s quick and easy to use, and shouldn’t add much weight to your site.

To duplicate content with this tool, follow these steps:

Install the plugin and activate it.

Navigate to Posts > All or Pages > All to find the content you want to clone.

Hover over the post or page.

Click on the Duplicate Page or Duplicate Post option.

Duplicating a Page in WordPress Without a Plugin

Of course, you don’t have to use a plugin to clone a page or post in WordPress. This can also be done manually, by either editing the funtions.php file or copying and pasting the relevant code. Let’s look at how both methods work.

1. Enable Cloning via funtions.php Code

One of the manual ways to clone a WordPress page or post is to edit the code in your functions.php file. While this can be easy to do, you do need to be cautious and make a backup of your website first.

To enable cloning for posts, you’ll need to access your functions.php file and open it for editing, using Secure File Transfer Protocol (FTP) or whatever other method you prefer. Then you’ll need to add the following code snippet to the end of the file:

To enable cloning for pages as well, use the same code but replace the final line with:

add_filter('page_row_actions', 'rd_duplicate_post_link', 10, 2);

After that, you can save the file and reupload it to your server. Then you can head back to your WordPress dashboard. A Duplicate button should now appear when you hover over a page or post you want to clone.

2. Manually Copy & Paste Code to Duplicate a Page

If you do not want to edit your functions.php file, you can manually copy and paste the code for the page or post you want to clone. To do this, you will need to:

Open the page or post you want to duplicate.

Click on the More Tools & Options menu.

Select Code Editor.

Copy the code for the page or post.

Click on New Post or New Page.

In the new post or page, open the Code Editor.

Paste in the code.

Click on the More Tools & Options menu.

Select Visual Editor.

The new page or post should now be a clone of the old one.

This process can take a little time, and you’ll need to do it individually for each page or post you want to copy. That’s why we recommend using a plugin if you’re looking to duplicate a lot of content.