Home » WordPress » Without Plugin Duplicate or Clone Post and Page

Without Plugin Duplicate or Clone Post and Page

Are you looking for without plugin to duplicate or clone post and page on your WordPress website? Then here we have a solution to do that. Duplicating or cloning posts and pages is awesome to reduce our works with a short time. Instead of wasting time with making another post and page layout or structure, we can duplicate or clone easily with the help of simple function.

If you not well experienced in WordPress code, you can go with the Duplicate Post plugin. Without plugins creating a WordPress site is always best and shows outstanding from other websites. Use the below code in your functions.php file.

In the above code, what we do is getting an existing post ID and based on that cloning post with a new post data array. After that saving in the draft with edit redirection option.

Conclusion:

I believe this article will help you to clone the existing post or page without plugins. If you have any doubts let me know in the comment section and if you like this article share it with your friends.

Was this article helpful?

Yes No
×

How can we improve it?

×

We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest

Mraj

Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

One thought on “Without Plugin Duplicate or Clone Post and Page

Leave a Reply

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

Back to top