Connect with us

WordPress Themes

WordPress Tip: Auto-Archive Old Posts with Low Visits

No matter how popular your website, you are going to have posts that just don’t get as much attention. By archiving them, you will be able to reduce clutter on your site and push high-engagement posts more. To pull this off, you are going to need a function to track post views:

The second step is to archive low traffic posts and hide them. This code snippet identifies posts that have not been visited in the past 180 days.

The last step is to hide these archived posts from the main category. Just make sure you use the right category ID for this to work.

Continue Reading
You may want to check out:
*some of our articles and lists include affiliate links to fund our operations (e.g. Amazon, Elegant Themes, Envato). Please read our disclaimer on how we fund Exxponent.
You may also like...
Click to comment

More in WordPress Themes

To Top