wordpress snippets last updated   : April 22, 2014
we now have 631 snippets

Add class to next and previous post_link

wordpress snippet

I recently needed to use this for a theme I was building figured I would post the results up here for everyone. Adding this snippet to the functions.php of your wordpress theme will add a custom class to next and previous post_link.

read more

Add a custom class to wp_get_attachment_link

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a custom class to wp_get_attachment_link.

read more

Link keywords or replace text in all blog posts

wordpress snippet

Adding this to the functions.php of your wordpress theme will let you replace text within your blog post. This is a great option for linking multiple pages in your blog with keywords. Don’t forget to change the “TEXT_TO_REPLACE” and the “TEXT_YOU_WANT_TO_REPLACE_WITH” lines in the above code add new lines for more items.

Note: Extensive use of this method may cause performance issues, use sparingly.

read more
jqsnipp.com | we just launched jquery snippets website