wordpress snippets last updated   : April 22, 2014
we now have 631 snippets

Firefox opensearch and your blog

wordpress snippet

Add this code to a text editor and save as opensearch.xml then upload to your root dir. This will let users add your website as a search engine within Firefox like Google, Bing, Wikipedia and others. Now visitors can change their search option and select your blog.

read more

Highlight search terms

wordpress snippet

Adding the first block of PHP code to your wordpress functions.php file. Then add the second block of code to the header.php file of your wordpress theme.

read more

Display number of search results

wordpress snippet

Adding this PHP code to your wordpress theme will display the total number of results returned.

read more

Search a specific post type

wordpress snippet

Adding this PHP cde to your wordpress theme will allow you to search specific post types.

read more

Search categories and child

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you define a child category automatically when searching.

read more

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
jqsnipp.com | we just launched jquery snippets website