wordpress snippets last updated   : October 6, 2014
we now have 641 snippets
category posts

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

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

Facebook like button

wordpress snippet

Adding this snippet to your wordpress loop within the index.php template file or single.php will add a Facebook like button for each article you post with the associated permalink.

read more

Display the_content()

wordpress snippet

Adding this code snippet to your wordpress theme will display the content the the current post.

read more