Require a Featured Post Image This code sends an admin message if a featured image is not set for the...
Create new image sizes for custom post types By default WordPress creates three images sizes for every picture uploaded to your media library....
Change default gravatar WordPress offers a default avatar for registered users who don't have a profile image. If...
Sharpen resized images Uploaded images are resized (thumbnail\medium\large) by default and will look a bit blurry due to...
Disable auto creating of image sizes WordPress creates by default 3 sizes for every image which is uploaded to the media...
Remove image dimension attributes By default WordPress auto adds the images height and width to the img src code...
Check if post has a gallery A simple check if the current post\page has a gallery shortcode within the post_content. Show...
List all attachments from custom post type Sometimes you need to get all attachments (i.e. from a portfolio custom post type) and...
Change jpg compression level WordPress generates various image sizes which is handled by your theme's config. They all get...
Add ‘img-responsive’ class to images If you are using bootstrap this may be a handy snippet to automatically add the...