How to clone or create a WordPress duplicate page without problems
Change the theme of your WordPress or test the functionality of a plugin, there are some cases in which it is convenient to make a WordPress duplicate page to test in a similar environment but separate from the one in production.
WordPress is the most user-friendly platform. In case, you are not aware of how to duplicate a page in WordPress, GolaunchE brings you some easy step by step guides:
Clone WordPress content
If you are reading this article, you may need to know how to easily duplicate a post. As we know, in WordPress we have the option to go to the HTML view, copy the content of the article, create a new one, paste it from the HTML view of the latter, fill in the rest of the options and save.
The process to duplicate page in WordPress is completely manual, so we will have to copy and paste or transfer the options of each field, either the category or the title of the entry, to give some examples, which can slow down the task. So if we tend to clone posts or pages frequently, or we are going to need to do it with some regularity, this form, although functional, is not the most efficient.
One method that will facilitate our work and above all speed it up, will be to use some of the plugins available in WordPress that allow us to duplicate posts or entire pages with a single click.
In this case, we are going to talk about the WordPress duplicate page plugin, an extension with a free and also a premium version, which will allow us to clone articles, pages, and even our CPTs. We will see that with the free version we can already do it. Having said all this, let’s start!
WordPress Duplicate Page/Website Manually
This is the slowest and most complex option, but sometimes the only one possible if your server fails with other plugins.
And although there are plugins that facilitate the process, such as Duplicator or UpdraftPlus Premium, it requires several steps and can be somewhat complicated and cumbersome.
The steps to follow are basically the following:
- Create a subdomain and an FTP account to access it.
- Create a duplicate of the WordPress database
- Update all URLs in the database from https://mydomain.com to https://mydomain.midomain.com
- Download by FTP all the files of the WordPress installation in production
- Edit wp-config.php and change the connection data to the database.
- Upload all files to the subdomain.
Plugin installation and options
As always, the first thing we have to do is install the plugin. For this, we go to the WordPress desktop, “Plugins/Add New”, and insert in the search engine the name of it, “Duplicate Page”.
Once we have located it, we will click on “Install now”, and as soon as it is installed we can activate it. This will create a new menu entry in the “Settings/Duplicate page”, so we will have the access to see the options they offer us from this section.
Duplicate entry status: In this field, we can select among several options: “Draft”, “Publish”, “Private” and “Pending”, so that the chosen value will be assigned to the new entry or page that is created by duplicating the article. As long as we do not select another option, the duplicate entries or pages will appear in “Draft” which is the default option.
Where to redirect after duplicating: By clicking to duplicate a post or page in WordPress using this plugin, we can be redirected “To the list of all entries” or “To the duplicate edit screen”. If we select the first destination, just click to clone the content, the content will be cloned and we will be redirected to the menu option “Entries” or “Pages” depending on whether we are duplicating an entry or a page.
Duplicate entry suffix: When we clone an article or blog page, by default, its title is copied as it is. To differentiate it, duplicate post/page WordPress offers us the possibility of adding text that will work as a suffix, behind the title. Adding something like “Copy”, “Clone”, etc. Here will help us determine at a glance which is the article copy.
Although at all times we have been talking about articles and posts, as we explained in the first section of this tutorial, this plugin also allows us to clone Custom Post Types, so we can use it in the same way.
WordPress Duplicate Page Settings
Well, in this case, we are going to make a couple of very simple adjustments, these are going to depend on the preferences of each one, so we can choose other options.
First, we will keep the status of the duplicate post in “Draft”, then we will select the option “To the duplicate edit screen” for the field “Where to redirect after Duplicate”, and finally we will add the suffix “Copy”. Then we will save the changes.
And now yes, everything is ready to clone any content. To do this, we will first have to access the list of entries, pages, or the CPTs in question. When placing us in any article, we will see that we have the option “Duplicate” available.
So we simply have to press it to duplicate any content, which will automatically appear below with the same title plus the word “Copy”.
Very easy, right? Well, you know, if you need to use this functionality often, this plugin will save you a lot of time, especially if you create content daily with the same type of scheme.
Several plugins will help us to create a WordPress duplicate page. In this case, we have used Duplicate Page, a freemium extension whose free version will allow us to clone entries, pages, or CPTs in just one click.
To use it, we must install and activate it, make some small adjustments, and access the list of posts, pages, or personalized entries that we have created. Once there, we will find in the menu of each of them the option to duplicate them.
So far the tutorial, if you want to learn more we recommend viewing GoLauncheE’s extensive knowledge base. You know that if you subscribe you will have access to the basic tutorials and guides by our tech experts.