How to duplicate a page in wordpress [ Without Plugin ]
236 views
Jan 24, 2024
In this tutorial video, the presenter guides viewers through the process of duplicating a page in WordPress without using a plugin. The video likely covers step-by-step instructions on utilizing built-in WordPress features or coding methods to create a duplicate copy of a page. Viewers can expect practical insights into the duplication process, making it easier for WordPress users to replicate existing pages without relying on additional plugins. Whether you're a website owner, developer, or content creator looking for a straightforward method to clone pages in WordPress, this video aims to provide a helpful guide for achieving duplication without the need for external plugins.
View Video Transcript
0:00
Hi everyone, welcome to Ketublogging and in this video I will show you how you can duplicate a page in your WordPress website
0:06
So here I'm going to cover three different ways to duplicate a page in WordPress
0:11
So why you need to duplicate a page? So suppose you want to change a design of a page, like suppose you want to change a section in home page
0:19
So what I can do is I will duplicate the home page and I will edit the duplicate page first and see the changes
0:27
If it is looking good, then I can make it live as. a home page. So there are various reasons why you need to duplicate a page in WordPress
0:36
So let's check how you can add this functionality to our WordPress website
0:40
So if you found this video helpful, then make sure to hit the like button. So to duplicate a page
0:46
so let's check the first method. So I will click on about here. Let me just edit this page here
0:54
And as you can see that this is the design of this about us page. So if I want to duplicate the
0:59
this about page, what I can do is I will click on this 3 dot menu here and here you will
1:05
see an option like copy all block. So here it is copy all blocks, just click on here
1:12
Let's go back here and I will click on add new here and I will type like about two and I will
1:24
click on here and I will paste the here. As you can see that all the blocks are now pasted in this new
1:29
page. So I can simply click on save as draft and let's go back here
1:48
and as you can see that we have added the duplicate of this about us page. So this is a manual method, but here note that you will not copy the metadata like it will not copy the focus keyword or it will not copy the feature image title
1:51
So you need to do the manual changes in this website but it will copy all the blocks to your clone pages as well But what if you want to duplicate these pages more frequently then you can use a code snippet So you can add a function file to your theme
2:08
So let's go to the theme here. And here you will see this option theme file editor
2:14
And here you will see this option, function. So make sure to use a child theme if you are using the function
2:21
Pshp file method. So here if you update your theme then this settings will be overwrite
2:27
So make sure to use a child theme. Otherwise you can use a code snippet plugin
2:32
So here you can paste a code like this. So let me just copy the code here and you can simply paste the code in your function
2:44
Php file and hit update. So do it carefully otherwise you may break your website
2:50
So after adding this code snippet to the function.psp file, let's go to the pages here
2:58
And if you hover this, you will see a option duplicate. So let's click on here
3:04
And as you can see that it has duplicated the contact page for us. So let's change it to contact 2
3:10
Let's click on save draft here. And as you can see that we have duplicated a contact 2 page like this
3:17
So in this way you can add a duplicate functionality to your role. WordPress website using a code snippet. It also works with post as well. So if you go to post
3:26
you will see this option duplicate. So in this way you can use a custom code snippet in your
3:30
WordPress website and duplicate the page more easily. Or you can use this code instead of the
3:36
function.p file. So let me just remove that. So what I can do is I will go to function.p file
3:42
and I will scroll down here and I will delete all the code from here. Here it is. So let me just
3:50
Remove all the code from here and I will update the file and I can use a code manager plugin so let go to the plugins here and let click on add privilege and you can simply search for code manager and here you can use any code manager plugin like WP code or code snippets
4:11
like that. So here I'm using the WP code plugin. So I will go to code snippets
4:18
I will click on add new. I will add the custom code snippet
4:22
So instead of adding this to function. Php file, which will be overwrite
4:26
once the theme is updated. So it's a better way to use a code manager plugin
4:31
So let me just paste the code here. And I will change this code type to PHP snippet and I will name it like duplicate function
4:44
like this. So you can add a name to remember this code
4:48
Let's click on active and let's click on save changes. Now let's go to the pages here and as you can see that the same duplicate
4:56
functionalities added to our WordPress website. Or if you don't want to use the custom code, you can use a duplicate plugin as well
5:04
So to add the plugin, let me just disable this function first
5:08
I will go to the plugins and I will click on Add New. So this is the third method you can use to duplicate
5:14
So I will taglip duplicate and here you will get various plugins to duplicate your post
5:20
and pages. Here that is the US duplicate post. Here you will see the duplicate page option
5:26
Here you will see this option duplicate post. You can use any of the plugin from here
5:31
So let me just install the first one and let's activate this plugin and let's click on skip here
5:39
And here you will see all the options like whether you want to copy the title, whether you
5:43
want to copy the Slok Xop. So it will copy all these functions like it will copy the feature image templates author
5:51
So using this plugin you will have more options here. So let's click on save here
5:56
and here add a prefix like this like clone and let click on save here and here you also
6:07
get more options here like set the permission like whether you want to show the duplicate
6:13
option to admin only or to show it to editors as well so you can give the options whether
6:19
you want to add the function to the pages post or something so you will get more
6:23
options using this plugin so let's go to the pages here and
6:27
And let me just go to the post here and let me just duplicate it here
6:33
So as you can see that, it will show a copy button like this. And here you can see that it is set to default and let's click on copy now
6:41
So it will copy this and it will see that there is a prefix added clone and you can see
6:48
that it is by default save to draft. So in this way you can also duplicate a page or post in WordPress using a plugin
6:55
So, if you use a plugin, you will get a little bit of more functionality, but you can also
7:00
use the manual method that you have discussed in the previous section
7:04
And there is one more settings. What if you want to duplicate multiple pages at once
7:09
So to do that, you can use the bulk action feature as well
7:13
Suppose I want to duplicate the Hello World, second post and third post, and I will click
7:18
on bulk action, and here you will see this option, copy. So let's click on here and let's click on Apply
7:25
here you will see this option so you can copy all the sections like this so let's select all
7:32
the sections here and i will click on copy so it will duplicate all the sections like this and
7:39
as you can see that clone third post clone second post clone hello word so in this way you can
7:44
bulk duplicate your pages in WordPress as well using this plugin so this is the three ways you
7:49
can use to clone your post and pages in WordPress and if you have any doubt regarding this
7:55
Then you can ask me in the comment section and if you found this video helpful, then make
7:59
sure to hit the like button. And I will see you in the next one. Bye bye