I have a website which lists deals that expire. Each deal has a custom field with an expiration date. I'm looking to somehow archive the posts when they expire, yet still have them available if you access the link to the deal (since i don't lose SEO impact). I also would like to have them disappear from the category they are held in.
I was able to get the code from this page (http://snipplr.com/view/16400/updated-wordpress-post-expiration-code/) working in my home page (loop) and also put the same code in my category page loop. Yet when i go to click on a category, the expired posts still appear.
Please Help!
Guillermo Sornoza answers:
Hi, you should remove the
|| (is_archive()
in the condition, for your category loop.