wordpress snippets last updated   : October 6, 2014
we now have 641 snippets
category functions.php

Add category selection to custom post type

wordpress snippet

Adding this wordpress snippet to the functions.php will enable category selection within the editor for your custom post type. Don’t forget to change the CUSTOM_POST_TYPE to the name of the custom post type you created.

read more

Add styles select button / menu in editor

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will enable a styles menu in the visual wordpress editor with the following default styles. wp-oembed, wpGallery, wp-caption-dd, wp-caption, alighright, alignleft, aligncenter

read more

Replace keywords in the_content and the_excerpt

wordpress snippet

This is an updated version of the post from a few days ago (Link keywords or replace text in all blog posts) overall this is a better solution if you have a large list of keywords. Adding this PHP snippet to the functions.php of your wordpress theme will allow you to replace keywords within the_content and the_excerpt using an associative array.

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

Post to your blog using email

wordpress snippet

Place this snippet in the functions.php of your wordpress theme. This snippet will check every 15 minutes for new emails within the account you specify and post them. The Subject of your email will be the title and text placed within the body of your email for the post content.

read more

Add subscript and superscript buttons to editor

wordpress snippet

Adding this PHP snippet to the functions.php of your wordpress template will add subscript and superscript buttons to the wordpress editor.

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