[theme-reviewers] set_post_thumbnail_size

Justin Tadlock justin at justintadlock.com
Wed Jul 16 16:04:55 UTC 2014

Yes, you should be using `set_post_thumbnail_size()` for setting your
theme's thumbnail size. If you have additional image sizes you want to add,
then use `add_image_size()`.

Basically, think of it as a standardized way of adding custom thumbnails.
 Since it's standard, there are cool things that plugins can do with
it.  For example, I could have a plugin that sets the default gallery thumb
size to `post-thumbnail` (when set by the theme) so that galleries will
match the theme design better.

So, the advantage is using the standard, which opens the door to doing
awesome stuff (like the plugin example).

On Wed, Jul 16, 2014 at 1:34 AM, Thomas from ThemeZee <contact at themezee.com>

> Thanks for this information, Justin, I didn't know this funciton. You
> never stop learning ;)
> I have always created a complete new image size for the post thumbnail
> with add_image_size( 'featured-image', x, x) so far. Are there any
> advantages to use "post-thumbnail" instead of an own custom image size?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140716/757e2a0d/attachment.html>

More information about the theme-reviewers mailing list