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:

How to: automate WordPresss tasks

WordPress Tip: Auto-Archive Old Posts with Low Visits

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.

Leave a Comment

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

Scroll to Top