[wp-trac] [WordPress Trac] #23347: Theme fallbacks for post format meta data

WordPress Trac noreply at wordpress.org
Fri Feb 1 09:54:26 UTC 2013


#23347: Theme fallbacks for post format meta data
-------------------------+------------------
 Reporter:  helen        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.6
Component:  Template     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------

Comment (by johnbillion):

 The markup for the image format isn't quite correct.
 {{{
 <div class="wp-caption format-image-img">
         <img src="{$_format_url}" alt="{$post_title}" height="" width=""
 border="0" />
         <div class="wp-caption-text">{$post_content}</div>
 </div>
 }}}
 should be:
 {{{
 <div class="wp-caption format-image-img">
         <a href="{$_format_url}">
                 <img src="{$featured_image_url}" alt="{$post_title}"
 height="" width="" border="0" />
         </a>
         <div class="wp-caption-text">{$post_content}</div>
 </div>
 }}}
 with a bit of logic to only add the link if a URL has been entered.

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


More information about the wp-trac mailing list