updated   : April 22, 2013
we now have 608 snippets

Archives display all post types

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will force the archives to display all post types. Be sure to add in your post types.

read more

Private posts for logged in users

wordpress snippet

Using this as your wordpress loop will display posts with the custom field of private only to users that are logged into your website.

read more

Notify members on new posts

wordpress snippet

Adding this PHP code snippet to the functions.php of your wordpress theme will notify users of new posts. Please note that this snippet is best used for low volume sites. Large websites should consider alternative options.

read more

Edit post link

wordpress snippet

Adding this PHP code to your wordpress theme will display a post link to edit the current post if user has the permission to edit posts. This code must be placed within your wordpress loop,

read more

Filter search results by post type

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will only search posts, and custom post types, excluding pages.

read more

Increasing WYSIWYG editor height

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will increase the height of your WYSIWYG editor. This is a great tip giving you more room when you need to write, making your life just a little bit easier. Thanks wpcanyon for this great tip!

read more

Realted posts using multiple tags

wordpress snippet

This related posts snippet will compare multiple tags and display relevant related posts. Add this PHP code to the single.php of your wordpress theme.

read more

Random blog post

wordpress snippet

Adding this PHP code to your wordpress theme just before the loop will display one random post from your wordpress database.

read more