updated   : April 22, 2013
we now have 608 snippets
category posts

Remove private and Protected

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will remove the private and protected text that will displayed with password protected posts.

read more

Display twitter like time

wordpress snippet

Adding the function to your functions.php in your wordpress theme. Then replace the_time(); in your theme with the second PHP snipp time_ago();. Time format will then display “3 days ago, more than a month” etc.

read more

Get post ancestors

wordpress snippet

Adding this PHP code to your theme will allow you to retrieve the parent posts based on post ID.

read more

Return trackback URL

wordpress snippet

This PHP code placed within the loop of your wordpress theme will return the trackback URL for the current post.

read more

Submit to Digg

wordpress snippet

Adding this snippet to single.php or index.php templates of your wordpress theme will allow people to automatically submit your post to digg with a single click.

read more

Submit to Reddit

wordpress snippet

Adding this PHP code to the loop of your wordpress theme will allow users to submit your post to reddit.

read more

Share on Twitter

wordpress snippet

Adding this PHP code to the loop of your wordpress theme will allow users to share your post on twitter.

read more

Bookmark on Delicious

wordpress snippet

Adding this snippet to index.php or the single.php templates of your wordpress theme will allow people to automatically bookmark your posts on Delicious.

read more