How to duplicate a blog post or a page without copying post or page views count in WordPress?

spot_img

Share

You may be using few of the top WordPress plugins to get the duplicate feature or customized the code for cloning the WordPress post or a page.
In this post, I will help you how to easily clone or duplicate a post in draft or published version without copying the few unnecessary fields like post views counts, template, format, Feature images, etc..

I have tried this using the top WordPress plugin ‘Duplicate Post’ to clone my post which I need to post as a template only.

As the name Duplicate Post, its not only used to clone a post but pages as well in bulk.

How to clone a WordPress blog post or a page?

  • Step 1: Install and activate ‘Duplicate Post‘ or any other trusted plugin.
  • Step 2: Go to Dashboard, Posts >> All Posts.
  • Step 3: You should get options like Clone, Duplicate as draft.
  • Step 4: Now check the post or page you need to duplicate and Select Clone and press on Apply button on the top. That’s it! Your post is duplicated now.

You can do some customization from the Settings >> Duplicate Post to check on what to copy and what all fields to skip like title, date, author, template, format, excerpts, status, slug etc.

How to prevent or skip duplication of post views counts using Duplicate Post plugin and initialize the post count to zero when cloned?

Duplicate Post plugin have the option to prevent copying of few fields while cloning a post or a page in WordPress. You just need to add few lines in the settings for this plugin. If you have a network site, you may need to save the settings for each and every site in the network.

To limit what to copy and what to skip while duplication, you need to go to the settings page and check or un check the Post/page elements to copy.

You can change the title prefix and suffix and increase menu order by some number.

You can also prevent the taxonomies like Categories, Tags, Navigation Menus, and Link categories.

Also there is an additional feature to customize what to be not copied, Do not copy these fields option gives you the freedom to provide any number of meta fields that must not be copied to the cloned post or page.

Like you can prevent Post views count from being copied, you just need a add post_views_count

This will prevent the post count from being copied to cloned or duplicated post. You can provide any number of meta fields to this by separating them with a comma.

If you have achieved what you were looking for, then please comment below and share your experience.

Leave a Reply

Read more

More for you