[wp-trac] [WordPress Trac] #45325: Twenty Nineteen: Featured Image set on Posts Page doesn't display

WordPress Trac noreply at wordpress.org
Sun Feb 10 21:26:59 UTC 2019


#45325: Twenty Nineteen: Featured Image set on Posts Page doesn't display
---------------------------+-----------------------------
 Reporter:  igielskv       |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Bundled Theme  |     Version:  5.0
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+-----------------------------

Comment (by carlh04426):

 FWIW, I just encountered this behavior in a fresh Twenty Seventeen WP
 installation and isolated it down to this logic on line 50 in header.php:

 {{{#!php
 <?php
 if ( ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) )
 && has_post_thumbnail( get_queried_object_id() ) ) :
 }}}

 I inserted the following text into that line (please note the leading and
 trailing spaces):

 {{{#!php
 <?php
  || 10 === get_queried_object_id()
 }}}
 directly after '! twentyseventeen_is_frontpage()' [to explicitly select
 the blog index page by it's ID] and it solved the problem for me. This is
 probably just a 'hack' or workaround (and that's perfectly suitable in my
 case,) but hopefully this will prompt another look by a sharper developer
 than me? :) I really think it's quite reasonable to want the Blog page to
 act in a way that is consistent with the other pages in this regard.

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


More information about the wp-trac mailing list