Home > WordPress > How to Duplicate Pages OR Posts in WordPress?

How to Duplicate Pages OR Posts in WordPress?

In this tutorial, we will learn how to duplicate pages or posts in WordPress. We can do this with plugins or without plugins. We will cover both methods here.

Duplicate pages or posts functionality we need when we need mostly the same format, tags, categories, custom fields, SEO data, etc. And we can copy that specific post or page.

So we will make an anchor link on the posts list or pages list page and when we click on that link it will create a new post with the same content and save it as a draft.

But without duplication functionality, you have to check one-by-one all fields and make another new post.

Let’s get started!

Duplicate Pages or Posts With Plugins

To make duplicate WordPress posts or pages is very easy with the plugins. Because it provides you all the functionality and you just have to clone the page by click on the action link.

OK. If you are searching for post-page duplicator plugins? So see the following best plugins.

1. Duplicate Page

Duplicate Page Plugin

Duplicate Posts plugin can close Posts, Pages and Custom Posts easily using a single click. You can duplicate your pages, posts, and custom post with just one click and it will save as your selected options (draft, private, public, pending).

See the step-by-step guide on how to install a wordpress plugin.

2. Duplicate Page and Post

Duplicate Page and Post Plugin

Duplicate Page and Post plugin is a very lightweight plugin and it is the fastest duplicator. It provides functionality to create a clone of pages or posts.

See the step-by-step guide on how to install a wordpress plugin.

3. Post Duplicator

Post Duplicator Plugin

The Post Duplicator plugin will make the exact same copy of the selected post or page. It can make posts, pages, and custom post type duplicate and it supports the custom taxonomies and custom fields.

See the step-by-step guide on how to install a wordpress plugin.

4. Yoast Duplicate Post

Yoast Duplicate Post Plugin

This plugin allows users to clone posts of any type, or copy them to new drafts for further editing. In ‘Edit Posts’/’Edit Pages’, you can click on the ‘Clone’ link below the post/page title: this will immediately create a copy and return it to the list.

See the step-by-step guide on how to install a wordpress plugin.

Duplicate Pages or Posts Without Plugins

In this method, we will make functionality to clone the WordPress pages or posts. We will add a code snippet in the functions.php file.

Note: I suggest you use a child theme to make any customization on your website. Check here step by step guide on how to make a child theme in WordPress.

Duplicate functionality

The above code will create a post with the same content like tags, categories, custom fields, etc. So, add this code to the functions.php file and save it.

Duplicate link for posts

Above we made functionality to copy the WordPress post or page and make a new post as a draft with have same data. And the below code will make a new action on the list page to run the above function. So, add the below code in your theme’s functions.php file and save it.

After adding both code blocks in your theme’s functions.php file, you will see a new action link on your post list page. The label will be Duplicate, you can change it like clone, copy, etc.

WordPress Post Duplicate

Now you can clone your WordPress posts by clicking on the Duplicate action link. It will make new posts with the same content and redirect you to the edit post page. Here you can make it publish or draft.

But what if you also want to duplicate your WordPress pages?

Don’t worry!

You don’t need to make an extra functionality for this. We will use the same above functionality and will add just one filter hook line to run the above for pages and also show the Duplicate link for Pages.

Duplicate link for pages

The following code will show the same Duplicate link for Pages. Just add it in your theme’s functions.php file.

See the following image.

WordPress Page Duplicate

I hope you got all points about duplicate posts or pages in WordPress. If you have any questions, please ask me in the comment section I’ll respond to you as soon as possible.

Photo of author

About Aman Mehra

Hey there! I'm Aman Mehra, a full-stack developer with over six years of hands-on experience in the industry. I've dedicated myself to mastering the ins and outs of PHP, WordPress, ReactJS, NodeJS, and AWS, so you can trust me to handle your web development needs with expertise and finesse. In 2021, I decided to share my knowledge and insights with the world by starting this blog. It's been an incredible journey so far, and I've had the opportunity to learn and grow alongside my readers. Whether you're a seasoned developer or just dipping your toes into the world of web development, I'm here to provide valuable content and solutions to help you succeed. So, stick around, explore the blog, and feel free to reach out if you have any questions or suggestions. Together, let's navigate the exciting world of web development!

Leave a Comment