wordpress snippets last updated   : July 14, 2014
we now have 634 snippets

Add wordpress post types to the dashboard ‘At a glance’ widget

wordpress snippet

The WordPress dashboard includes a handy widget that displays some brief information about your site at a glance – rather creatively, it’s titled ’At a Glance’. By default it shows you the number of posts, pages and comments on your site allowing you to click through to edit each of those sections if you have the right permissions.

read more

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

Prepend ‘Sponsored post:’ to post title using post_meta

wordpress snippet

Simple little snippet that will use a custom field sponsored set to true will prepend “‘Sponsored post:” to the_title. The second snippet will prepend the value of sponsored to the_title.

read more

Update: Automatically create media_buttons for shortcode selection

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a select menu with an automatically generated list of your shortcodes. For everyone that is going to say hey wait a minute you posted this snippet before! Yes this is true but I added a few updates to this version.

read more

Remove image sizes from media upload gallery

wordpress snippet

This snippet will let you remove image sizes from media upload gallery very similar to a recent post that will show you how to add custom image sizes to the media upload gallery.

read more

Add featured image to RSS feed

wordpress snippet

It’s often useful to spruce up your RSS feed with images and the simplest way to do this is to include your post’s featured image in the feed content. Some themes have an option to enable this, but if yours does not then you can use this snippet. It will display the image to the right of the first paragraph of your content, but you can change the CSS in the snippet to modify the layout.

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