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

Display custom field value of previous and next post

wordpress snippet

Adding this snippet within the loop of your wordpress theme will display the custom field value from the previous and next posts. Just change the CUSTOM_FIELD on line 4 and 5 to the name of the custom field you wish to display.

read more

Next and previous post images

wordpress snippet

Adding this PHP code to your wordpress theme will display image links for your next and previous posts. Upload images to your theme with the name next.png and prev.png.

read more

Remove previous and next post links

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will remove the previous and next post links within the wp_head of your wordpress theme.

read more

Adding classes to previous_posts_link()

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will add a class to your previous_posts_link() and next_posts_link().

read more

Next & Previous links

wordpress snippet

Adding these snippets will add next and previous links to your wordpress theme.

read more