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

Create multiple search templates for custom post types

wordpress snippet

Adding these snippets to your wordpress theme will enable you to setup multiple search templates for custom post types.

read more

Track post views without a plugin using post meta

wordpress snippet

Use the following snippet to track post views on your wordpress blog. The first thing you want to do is add this snippet to the functions.php of your wordpress theme. Follow step 1. and step 2. to track and display the number of views for each post.

read more

Template directory path

wordpress snippet

Adding this PHP code snippet to your wordpress theme will automatically generate the file path to your template directory.

read more

Include from theme dir

wordpress snippet

Adding this PHP code to your wordpres theme will allow you to include a file located within your theme folder.

read more

Gallery in template

wordpress snippet

You can use this PHP code to insert a gallery directly into your wordpress template.

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