updated   : May 15, 2012
we now have 588 snippets
By : , on November 11, 2010 4:00 pm

Browser detection

wordpress snippet

Adding this PHP code to your functions.php will add a class on the body tag within your HTML document with the specific browser name.

read more
By : , on November 10, 2010 9:00 am

Exclude cat from search

wordpress snippet

Adding this PHP code just above the loop in your wordpress search.php template. Make sure to place a - minus before the category ID you wish to exclude.

read more
By : , on November 06, 2010 4:00 pm

Auto create custom field

wordpress snippet

Adding this PHP code to your functions.php of your wordpress theme will auto create a custom field with a default value. In this example the custom field is sort order,

read more
By : , on November 04, 2010 9:00 am

Adding breadcrumbs

wordpress snippet

Adding the first block of code to your functions.php will setup everything for your breadcrumbs. Add the second section of code in the location you wish to have your breadcrumbs displayed.

read more
By : , on November 03, 2010 2:00 pm

Disable wordpress search

wordpress snippet

Adding this code to your functions.php within your wordpress theme will disable search.

read more
By : , on November 01, 2010 3:00 pm

Insert favicon with function

wordpress snippet

Adding this PHP code to your functions.php of your wordpress theme will insert the HTML for your favicon.

read more
By : , on 3:32 am

Automatic jQuery inclusion

wordpress snippet

Adding this code to the functions.php will automatically insert Jquery into the header of your wordpress theme.

read more
By : , on October 29, 2010 11:00 pm

Member only content

wordpress snippet

Adding this PHP code to the functions.php file of your wordpress theme will allow you to place content you only wish members to see within the members short code [member][/member].

read more