[wp-trac] [WordPress Trac] #12235: Display caption with the_post_thumbnail
WordPress Trac
noreply at wordpress.org
Tue Jun 14 23:54:40 UTC 2016
#12235: Display caption with the_post_thumbnail
----------------------------------------+-----------------------
Reporter: hd-J | Owner: flixos90
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.6
Component: Post Thumbnails | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------
Comment (by joemcgill):
Replying to [comment:21 flixos90]:
> [attachment:12235.diff] adds an easy-to-use function to get the caption
for a specific attachment, `wp_get_attachment_caption()`. It furthermore
adds functions to get the caption for the featured image of a post, using
the new attachment caption function.
I agree with this approach and [attachment:12235.diff] looks great to me.
+1
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12235#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list