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

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

Add HTML to feature image metabox

wordpress snippet

Adding this snippet to the functions.php will let you add HTML to the featured image metabox. This could be use to add extra information for your clients on how to use this feature.

read more

Add featured thumbnail to admin post columns

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add the featured thumbnail to the post listing within the wordpress admin. This is a featured I added to my theme so that when creating posts I could more easily see what posts I had added thumbnails to.

read more

Featured / post thumbnail image caption

wordpress snippet

Add the first block of code to the functions.php of your wordpress theme, then add the second block within the loop of the desired template file, single.php or, index.php to display featured image caption.

read more

Get featured image url

wordpress snippet

Adding this PHP code to your wordpress theme will get the featured image of your post.

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