[wp-trac] [WordPress Trac] #11571: Provide easy way to return url of thumbnail image

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 29 16:38:50 UTC 2009


#11571: Provide easy way to return url of thumbnail image
-----------------------------+----------------------------------------------
 Reporter:  braindrain       |       Owner:                   
     Type:  feature request  |      Status:  new              
 Priority:  normal           |   Milestone:                   
Component:  Post Thumbnails  |     Version:  2.9              
 Severity:  normal           |    Keywords:  reporter-feedback
-----------------------------+----------------------------------------------

Comment(by nacin):

 I think the issue is that while there is a get_the_post_thumbnail()
 function, which corresponds to wp_get_attachment_image(), there is no
 get_the_post_thumbnail_src(). There is however a
 wp_get_attachment_image_src() function.

 There probably should be a get_the_post_thumbnail_src() -- then again,
 there is no direct echo for wp_get_attachment_image(), while there is
 the_post_thumbnail().

 As an alternative, you can use wp_get_attachment_image_src() with the
 right parameters -- check out how get_the_post_thumbnail() calls
 wp_get_attachment_image() for that.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11571#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list