[wp-trac] [WordPress Trac] #33070: the_thumbnail_url or similar
WordPress Trac
noreply at wordpress.org
Wed Jul 22 14:01:47 UTC 2015
#33070: the_thumbnail_url or similar
-----------------------------+------------------------------
Reporter: atomicjack | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version: 4.2.2
Severity: normal | Resolution:
Keywords: | Focuses: template
-----------------------------+------------------------------
Comment (by atomicjack):
That would be because, something such as:
{{{
<a href="<?php wp_get_attachment_url(
get_post_thumbnail_id(); ?>" class="project-link" title="<?php
the_title(); ?>" data-rel="prettyPhoto[gallery]">
}}}
Results in a parse error.
Surely since we have the_content, the_post_thumbnail, etc, a simple
function to pull the thumbnail URL would be handy.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33070#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list