[wp-trac] [WordPress Trac] #28461: Add a fallback parameter to get_the_post_thumbnail() to find images
WordPress Trac
noreply at wordpress.org
Wed Oct 15 21:23:06 UTC 2014
#28461: Add a fallback parameter to get_the_post_thumbnail() to find images
-----------------------------+------------------------------
Reporter: krogsgard | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version: 3.9
Severity: normal | Resolution:
Keywords: | Focuses: template
-----------------------------+------------------------------
Comment (by krogsgard):
@obenland I agree, that's why I think it should be an optional parameter,
to be set by the theme developer.
From my original notes:
Justification: There are times in building out a theme where you'd
want the exact featured image or none at all (like a big wide header
banner or something), but other times it's great to have any 'ole
fallback, like a more traditional square thumbnail on blog archives.
There could still be an issue of sandwiching if someone switching themes
that handle things differently, but that's part of any theme switch --
some maintenance. Also, for instances where the featured image is called
with an excerpt or something, I'd imagine most folks would want a default
featured image from content vs nothing.
I've found that many people just don't fully grasp the featured image.
Additionally, for ''really'' old content, setting featured images on a
bunch of old posts is a pain.
I won't claim to have the perfect solution, but I think putting some
functionality in here somewhere would end up being a very well accepted
feature, if done responsibly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28461#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list