How to duplicate a page in wordpress Without Plugin

Picture of by David Pogue
by David Pogue

 

How to duplicate a page in wordpress Without Plugin

hi everyone welcome to K2 blogging and in this video I will
show you how you can duplicate a page in your WordPress website so here I’m
gonna cover three different ways to duplicate a page in WordPress so why you
need to duplicate a page so suppose you want to change the design of a page
like suppose you want to change a section in home page so what I can do is I
will duplicate the home page and I will

 Change a section in home page

edit the duplicate page first and see
the changes 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 so
let’s check how we can add this functionality to our WordPress website so if
you found this video helpful then make sure to hit the like button so to duplicate
a page so let’s check the first method so I will click on about here let 

me
just edit this page here and as you can see that this is the design of this
about us page so if you are I want to duplicate this about page what I can do
is I will click on this three dot menu here and here you will see an option
like copy all block so here it is copy all blocks just click on here let’s go
back here and I will click on add new here and I will type like about 2 and I
will click on here and I will paste this here as you can see that all the
blocks are now pasted in this new page so I can simply click on save as 

Manual method

draft
and let’s go back here 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 you will it will not copy the focus keyword or it will
not copy the feature image title 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 this Pages more frequently then you can use a code
snippet so you can add a function file to your theme

 so let’s go to the theme
Here and here you will see this option theme file editor and here you will see
this option function dot PhD so make sure to use a child theme pure using the
function.psp file method so here if you update your theme then this settings
will be override so make sure to use a child theme otherwise you can use a code
snippet plugin so here you can paste a code like this so let me just copy 

Paste the code in your function.php

the code
here and you can simply paste the code in your function.php file and hit update
so do it carefully otherwise you may break your website so after adding this code
snippet to the function.psp file let’s go to the pages here and if you hover
this you will see a option duplicate so let’s click on here and as you can see
that it has duplicated the contact page for us so let’s change it to contact
two let’s

 click on Save draft here and as you can see that we have duplicated a
contact to page like this so in this way you can add a duplicate functionality
to your WordPress website using a code snippet it also works with post as well
so if you go to post you will see this option duplicate so in this way you can
use a custom code snippet in your WordPress website and duplicate the page more
easily or you can use this code instead of the function.php file so let me just
remove that so what I can do is I will go to 

function.psp file and I will
scroll down here and I will delete all the code from here here it is so let me
just remove all the code from here and I will update the file and I can use a
code manager plugin so let’s go to the plugins here and let’s click on add new
and you can simply search for code manager and here you can use any code
manager plugin like WP code or code slippers like that so here I am using the
wp code plugin so I will go to code Snippets I will click on add new I will add
the custom code snippet so instead of adding these two function.php file which
will override once the theme is updated so it’s better 

way to use a code
manager plugin 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 like this so you
can add a name to remember this code 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 functionality is added to our WordPress website or if you don’t want
to use the custom code you can use a duplicate plugin as well so to add the
plugin let me just disable this function first I will go to the plugins and I
will click on add new so this is the third method you can use to duplicate so I
will directly duplicate and here you will get various plugins to duplicate your
posts in Pages here that is the US duplicate post here you will see the
duplicate page option or here you will see this option duplicate post you can
use any of the plugin from here so let me just install the first one and 

Type to PHP snippet

let’s
activate this plugin and let’s click on skip here and here you will see all the
options like whether you want to copy the title whether you want to copy this
lock X up so it will copy all these functions like it will copy the feature
image templates author so using this plugin you will have more options here so
let’s click on Save here and here Add a prefix like this like clone and let’s
click on Save here and here you will also get more options here like set the
permission like whether you want to show the duplicate

 option to admin only or
to show it to editors as well so you can give the options whether you want to
add the function to the pages post or something so you will get more options
using this plugin so let’s go to the pages here and let me just go to the Post
here and let me just duplicate it here 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 

Posts and pages in WordPress 

copy now so it will copy this and it will see that that is a prefix
added clone and you can see that it is by default safe to draft so in this way
you can also duplicate a paste or post in WordPress using a plugin so if you
use a plugin you will get a little bit of more functionality but you can also
use the manual method that you have discussed in the previous section and there
is one more settings what if you want to

 duplicate multiple Pages at once so to
do that you can use the bulk action feature as well suppose I want to duplicate
the hello world second post and third post and I will click on bulk action and
here you will see this option copy so let’s click on here and let’s click on
apply and here you will see this option so you you can copy all these sections
like this so let’s select all the sections here and I will click on copy so it
will duplicate all the sections like this and as you can see that clone third
post clone second post clone hello what so in this way you can bulk duplicate
your pages in WordPress as well using this 

plugin so this is the three ways you
can use to clone your posts and pages in WordPress and if you have any doubt regarding
this then you can ask me in the comment section and if you found this video
helpful then make sure to hit the like button and I will see you in the next
one bye bye  

Share this post :

Facebook
Twitter
LinkedIn
Pinterest

Leave a Reply

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

Create a new perspective on life

Your Ads Here (365 x 270 area)
Latest News
Categories

Subscribe our newsletter

Purus ut praesent facilisi dictumst sollicitudin cubilia ridiculus.