Add class to first post in the loop
If you wanted to add emphasis to the first post in your blog adding this snippet to the functions.php of your wordpress theme will add the class of “first” to your first post.
read moreNo excerpt available, display default message
Adding this snippet to your wordpress theme will allow you to display a default message when no excerpt has been added.
read morethis months featured snippets
Display attachment thumbnail with image metadata
Adding this snippet within the loop of your index.php template file will display a list of all post attachments with the following metadata (Credit, Camera, Focal Length, Aperture, ISO, Shutter Speed, Time Stamp, Copyright).
read moreAttach images with simple thumbnail selection metabox
A little snippet I wrote recently to easily attach images to posts with a simple thumbnail selection metabox. Add the first snippet to the functions.php of your wordress theme. Place the second snippet within the loop of your wordpress theme to display the images in your posts or pages.
read moreConditionally display content on last post
Adding this snippet within the loop of your wordpress theme will let you display something only if it is on the last posts.
read moreAutomatically wrap images in the_content with custom html
Adding this snippet to the functions.php of your wordpress theme will automatically wrap images in the_content with any custom HTML that you wish.
read moreAdd class to next and previous post_link
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 morelast months featured snippets
Microformatted and HTML5 compliant loop
Why not replace your existing wordpress loop within your theme to a microformatted and HTML5 compliant loop.
read more



















