Does get_the_image support description/caption?
-
Get the image is clearly one of the nicest plugins around for image
handling in WordPress. Beautifully executed with sensible defaults.However, how can we get at the image description or caption using
get_the_image()
? If this is not possible, is this functionality perhaps planned?Here are some reasons to have descriptions or captions:
1. Accessibility. Images should have alt texts, and if we can’t even set the alt text using get the image that’s a bit of a bummer.
2. Licensing. Images sometimes require attribution. We can use the WordPress description or caption fields for this info, but that is of little use if we can’t get at the info with the nicest plugin around.
3. Usability. An image says more than a 1000 words, but a few words can radically alter our interpretation of an image. Captions and descriptions are often crucial parts of the image, and it would be great if get_the_image() supported them.I’m hoping future versions of the plugin will enable us to
get_the_caption
too!
- The topic ‘Does get_the_image support description/caption?’ is closed to new replies.