wordpress snippets last updated   : April 14, 2014
we now have 630 snippets

Display current page sub pages

wordpress snippet

Adding this wordpress code snippet to your page.php will display the current pages sub/child pages in a list.

read more

Last loved track on last.fm

wordpress snippet

Adding this wordpress code snippet to your theme will display your most recent loved track from last.fm. Make sure you change YOURUSERNAME text within the RSS url to your last.fm username.

read more

Set fetch_feed to update sooner

wordpress snippet

Adding this code snippet to your functions.php will force fetch_feed( $uri ) to update sooner, set time in milliseconds.

read more

Simple breadcrumbs

wordpress snippet

Add the first snippet of code to your wordpress functions.php. Then add the second block of code to your theme in the place you wish to display your breadcrumbs.

read more

Next and previous post images

wordpress snippet

Adding this PHP code to your wordpress theme will display image links for your next and previous posts. Upload images to your theme with the name next.png and prev.png.

read more

Require login to view posts in wordpress

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will require users to login before viewing specific posts defined by and array of post IDs. Once the user is logged in they will be redirected to the original post.

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