Expire WordPress Post After Specific Time

| Last Updated: | In: WordPress Snippets


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.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:

Tags: , , ,