This plugin introduces a couple of nifty functions to replace the_post_thumbnail() & get_the_post_thumbnail() in exchange for the responsive picture element. Use:
get_the_post_picture(
$fallback_image_size,
array(
$breakpoint_1=>$image_size_1,
$breakpoint_2=>$image_size_2
)
[, $id, $atts]
);
For example:
'single-featured-md',
'(min-width:992px)'=>'single-featured-lg',
'(min-width:1200px)'=>'single-featured'
)
); ?>
While this says 4.0 for minimum version, I would wager it’ll be fine on most older installations.
Active installations10+
Weekly downloads
9+0.00%
Version1.0.4
Last updated10/4/2016
WordPress version4.0
Tested up to4.4.33
Tags
thumbnails