An easy-to-use image script for adding things such as thumbnail, slider, gallery, and feature images.
post-thumbnailas default image size if set via
$out['url']is set when returning as an array.
httpswhen returning as an array.
$attachment_id) when getting an image via attachment.
$attachment_idvariable instead of
$imagearray to the
get_the_image_meta_key_save()function so that it saves correctly.
afterarguments if an image is found.
beforeargument to output HTML before the image.
afterargument to output HTML after the image.
thumbnail_id_saveargument to allow the attached image to be saved as the thumbnail/featured image.
get_the_ID()rather than the global
*_fetch_post_thumbnail_htmlhooks into the main function and only fire them if displaying to the screen.
meta_keylogic, which allows a single meta key or an array of keys to be used.
nullby default since they're deprecated.
custom_keyin favor of
meta_key_saveargument to allow users to save the image as a meta key/value pair.
callbackargument to allow developers to create a custom callback function.
cacheargument, which allows users to turn off caching.
sizeto be more in line with the WordPress post thumbnail arguments, but
default_sizewill still work.
wp_kses_hair()to extract image attributes when using the
alttext will now use the attachment description if one has been given rather than the post title.
readme.htmlinstructions for using the plugin.
the_post_thumbnail(), which is WordPress 2.9's new image functionality.
Requires: 3.5 or higher
Compatible up to: 3.7.1
Last Updated: 2013-9-30
3 of 6 support threads in the last two months have been resolved.
Got something to say? Need help?