Plugin info

Total downloads: 1,714
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 10/4/2016 (3375 days ago)
Added to WordPress: 6/16/2015 (10 years old)
Minimum WordPress version: 4.0
Tested up to WordPress version: 4.4.34
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 3375 days ago

20/100

Is Picture Element Thumbnails abandoned?

Possibly abandoned (last update 3375 days ago).

Compatibility

Requires WordPress: 4.0
Tested up to: 4.4.34
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Regenerate Thumbnails
Rating 4.6/5 (394 reviews)Active installs 1,000,000
Force Regenerate Thumbnails
Rating 4.7/5 (182 reviews)Active installs 200,000
Recent Posts Widget With Thumbnails
Rating 4.8/5 (211 reviews)Active installs 100,000
Recent Posts Widget Extended
Rating 4.7/5 (160 reviews)Active installs 80,000
Perfect Images
Rating 4.8/5 (276 reviews)Active installs 70,000
reGenerate Thumbnails Advanced
Rating 3.1/5 (58 reviews)Active installs 70,000

Description

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.

Installation

  1. Install via the WordPress Plugin directory or upload this to your plugins folder.

  2. Activate from the Plugins screen on your Dashboard.

Frequently Asked Questions

What?

Adds the functions the_post_picture() and get_the_post_picture(). See the description for an example.

Why?

This is really a bigger question than the scope of this plugin, but see here.

Oh, you weren’t talking about the picture element as a whole. There exists at least one plugin that will out-of-the-box replace all <img> tags with “picture” elements and set breakpoints based on the image sizes. But if you need art direction, you need the HTML5 <picture> element. This plugin gives you control over A. Which elements are replaced and B. What your breakpoints are.

Does the order of my sizes array matter?

Yup. Pass them smallest image to largest.

Browser Support?

The plugin includes PictureFill.js. This should polyfill most browsers. If you have an issue, please report it!

Can I use my custom image sizes?

Yessir.

Can I contribute?

PRs are welcome! See GitHub.

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.0

  • Initial launch!

1.0.2

  • Added get_the_attachment_picture() as an alternative to wp_get_attachment_image()

1.0.3

  • Resolve some notices regarding static functions

1.0.4

  • Resolve another static notice