[wp-trac] [WordPress Trac] #45325: Twenty Nineteen: Featured Image set on Posts Page doesn't display
WordPress Trac
noreply at wordpress.org
Mon Feb 24 18:42:20 UTC 2020
#45325: Twenty Nineteen: Featured Image set on Posts Page doesn't display
---------------------------+----------------------
Reporter: igielskv | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Bundled Theme | Version: 5.0
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
---------------------------+----------------------
Changes (by ianbelanger):
* status: new => closed
* resolution: => wontfix
* milestone: Future Release =>
Comment:
Having the featured image not show on the `Posts Page` is the intended
behavior of most themes out there, especially default themes.
It can be accomplished with some customization. However, I have personally
run into issues when using `the_post_thumbnail()` to display the featured
image within the loop on archive pages. `the_post_thumbnail()` will always
pull the featured image of the first post in the loop. This is one of the
reasons that the featured image is not used on archive pages.
@swissspidy is correct in his reply:
>> I understand not everyone would like to have it displayed, of course
then they don't need to set it up
> Well, at the moment one cannot disable feature image support for an
individual post/page, just for content types as a whole.
I am going to close this ticket, as I don't think this is something that
needs to be fixed.
For those who would like to be able to use the featured image on a `Posts
Page`, you can do so by putting the ID of the `Posts Page` into
`the_post_thumbnail( 'Numeric ID of the Posts Page' )` and place it into
your template.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45325#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list