Expire WordPress Post After Specific Time

By Prem Tiwari in WordPress Snippets. Updated on


I am writing this snippets hacks because of getting more request from my blog readers. This snippets is very useful when you are running a promotional coupons code for your products and you want to it automatically expire after a certain period of time. So you can remove it automatically using this code.

Go to your default WordPress loop page and replace with this code:

Do like & share with your friends if like this tutorials. Thank you for giving time on freewebmentor community. Please don’t forget to subscribe our newsletter or join us on Facebook to be the first to learn the next great thing from freewebmentor.

Sharing is caring!


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

You might also like:

Tags: , , ,

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.