Exact matches only
Search in title
Search in content
Search in comments
Search in excerpt
Filter by Custom Post Type

How to get WordPress featured image source (src)

With the WordPress function: wp_get_attachment_image_src, you can get the src of the featured image. Instructions Add this code to your page/post template file where you want to use the featured image source.

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. Instructions Add this code to your functions.php file.

Add category id to body and post class

This snippet is very handy if you wish to add category ID to body and post class for ex. targeting CSS styles and such.