[wp-trac] [WordPress Trac] #12235: Display caption with the_post_thumbnail

WordPress Trac noreply at wordpress.org
Fri Jun 5 15:04:37 UTC 2015


#12235: Display caption with the_post_thumbnail
-----------------------------+-----------------------------
 Reporter:  hd-J             |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Post Thumbnails  |     Version:  2.9
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+-----------------------------

Comment (by krogsgard):

 >We could probably add some new template tags to help with this (I have
 some that I use in my theme framework) but extra arguments for
 the_post_thumbnail() isn't the way to go.

 I would say this topic is as necessary as ever. Featured images have
 tremendous adoption, of course, and both captions and image sourcing are
 common and often necessary.

 I'd love to see some template tags to help make captions for featured
 images a much simpler task for themers, and it would allow the theme team
 to define some good practices for showcasing additional featured image
 data in themes.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/12235#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list