[theme-reviewers] set_post_thumbnail_size

Thomas from ThemeZee contact at themezee.com
Wed Jul 16 17:08:46 UTC 2014

Thanks Justin! I will use it for my new themes from now on.

2014-07-16 18:04 GMT+02:00 Justin Tadlock <justin at justintadlock.com>:

> 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> wrote:
>> 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?
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140716/7e3c9494/attachment.html>

More information about the theme-reviewers mailing list