[wp-trac] [WordPress Trac] #17017: Check if a post has a featured image and get its URL (outside from the_loop)
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 2 00:13:13 UTC 2011
#17017: Check if a post has a featured image and get its URL (outside from
the_loop)
-----------------------------+------------------------------
Reporter: wiltave | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Resolution:
Keywords: |
-----------------------------+------------------------------
Comment (by andrewryno):
Have you tried
http://codex.wordpress.org/Function_Reference/has_post_thumbnail and
http://wordpress.org/support/topic/getting-post-thumbnail-url? First
function takes a post ID parameter, and while the second is "hacky", it
works as required.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17017#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list