Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Markup to Featured Image

Automatically set the featured image (formerly the post thumbnail) for a post based on custom markup in the body text.

Markup to Featured Image will automatically generate a featured image when you publish a post, with the intent of allowing you to publish posts with featured images from third-party clients like MarsEdit.

To add a featured image to your post, include one of the following markup variants in your post's content:

<img src="/path/to/image.jpg" data-featured-image="keep" />
<img src="/path/to/image.jpg" data-featured-image="strip" />

If you use an <img> element, the values of the data-featured-image attribute specify whether the image should be displayed when the post is shown on your site (keep) or ignored when the post is displayed (strip). The order of attributes in your <img> tag (and whether you include other attributes, like width/height, title, alt, etc.) doesn't matter. You can make it as complicated or simple as you like.

If the post already has a featured image, the plugin will do nothing (version 1.0 does not allow updating the thumbnail by updating the markup).

Requires: 2.9.1 or higher
Compatible up to: 3.4.2
Last Updated: 4 years ago
Active Installs: 60+


5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.