wordpress snippets last updated   : August 18, 2014
we now have 638 snippets

Navigate next, previous adjacent post with jquery and the left, right keys

wordpress snippet

If you are using adjacent post relational links in the head of your wordpress theme add this little bit of jquery. This will let people navigate next, previous adjacent post with the left and right arrow keys.

read more

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

Add “Next-page” button in WYSIWYG-editor

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will add a nextpage button to the WYSIWYG editor.

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
jqsnipp.com | we just launched jquery snippets website