Make using post thumbnails easier for everyday wordpressing.
Submit any other ideas at https://github.com/sewpafly/post-thumbnail-extras/issues.
Use the shortcode [pt]
in your posts to quickly embed the featured image as a thumbnail. Use the attribute ‘size’ to change to a different post-thumbnail size (e.g. [pt size='medium']
). You can also use any image in your media gallery if you know the id, by using the id
attribute ([pt id='100']
).
Use the link
attribute to wrap the image in a link.
link='file'
will create a link to the full size image.link='post'
will create a link to the attachment page.link='http...'
creates a link to any URL.Use the media library to quickly add this shortcode for the selected image by pressing the “Insert shortcode” button.
In Settings → Media, click the plus sign to add a new post thumbnail.
Update the width/height and whether or not the post-thumbnail should be cropped to an exact size. (If the width or height is set to 0, that boundary constraint is not enforced). Make sure you click the "Save Changes" button so that the changes are stored in the database.
In the media editor, you can choose to insert a shortcode of a single picture with the "Insert shortcode" button.
Yes. No. Sort of. Thanks for asking. But let me know if you’re having problems and I’ll see what I can do.
ptx_html_attrs
filter for modifying the html outputshortcode_atts
so that the shortcode_atts_ptx
filter will fire