[wp-trac] [WordPress Trac] #58927: Set featured image missing
WordPress Trac
noreply at wordpress.org
Thu Aug 24 22:53:05 UTC 2023
#58927: Set featured image missing
-------------------------------------+------------------------------
Reporter: ernasx | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.2.2
Severity: major | Resolution:
Keywords: needs-screenshots close | Focuses: administration
-------------------------------------+------------------------------
Comment (by doubleforte):
FWIW, I had the same problem.
WP is only part of my site, and I have consolidated css outside of the WP
theme dir. Therefore there is no `style.css` file. Turns out, if you are
missing the `style.css` file and you look at the theme's settings (not
even changing anything, just _looking at them_!) it will blow away access
to the featured image even though the theme files still contain
`add_theme_support('post-thumbnails', ['post']);`. Strangely, the public-
facing pages still respected the featured image.
TL;DR: Make sure you have a `style.css` file in your theme dir. Even if
the file is empty, it just needs to exist.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58927#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list