wordpress snippets last updated   : January 9, 2015
we now have 643 snippets

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

Shortcode outside the loop

wordpress snippet

Adding this code snippet to your wordpress theme will allow you call to shortcode within a template.

read more

Enable shortcode in widgets

wordpress snippet

Adding this to your functions.php will enable shortcode in your widgets. eg [gallery]

read more

Get the_title outside loop

wordpress snippet

Adding this PHP code to your wordpress theme will display the post title outside the loop.

read more

Get tags outside loop

wordpress snippet

Adding this PHP code to your wordpress theme will display a list of tags outside the loop.

read more

Custom field outside loop

wordpress snippet

Adding this code snippet to your wordpress theme will let you get a custom field outside the loop.

read more