wordpress snippets last updated   : July 14, 2014
we now have 634 snippets

Post is older than

wordpress snippet

Adding this first block of code to your functions.php will allow you to check the age of a post to see if it is older than a set number of days. Great if you want to display some some information related to the post after set number of days or even stop displaying the post altogether.

read more

Notify readers of old posts

wordpress snippet

Adding this to your wordpress theme within the loop will display a message to your visitors to notify them when a post is over a year old.

read more

Disable comments on posts over one month

wordpress snippet

In a number of project I have had to disable comments after a month or x period of time, this little snippet will let you disable comments on posts older than one month. Just add this great little snippet to the functions.php of your wordpress theme and you are ready to go.

read more
jqsnipp.com | we just launched jquery snippets website