wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Set maximum post title length

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will set a maximum number of words that can be displayed within your post title.

read more

Total number of tags

wordpress snippet

Adding this code snippet to your wordpress theme will display the total number of tags.

read more

Total number of categories

wordpress snippet

Adding this code snippet to your wordpres theme will display the total number of categories.

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

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