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

Ignore sticky posts

wordpress snippet

If you would like to ignore sticky posts in your wordpress loop at the following code just before your wordpress loop.

read more

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