<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>... Yes; would have sufficed but thanks for clarification ;)</DIV>
<DIV> </DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=otto@ottodestruct.com
href="mailto:otto@ottodestruct.com">Otto</A> </DIV>
<DIV><B>Sent:</B> Wednesday, July 16, 2014 1:14 AM</DIV>
<DIV><B>To:</B> <A title=theme-reviewers@lists.wordpress.org
href="mailto:theme-reviewers@lists.wordpress.org">Discussion list for WordPress
theme reviewers.</A> </DIV>
<DIV><B>Subject:</B> Re: [theme-reviewers]
set_post_thumbnail_size</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV dir=ltr>The function itself tells you everything you need to know, because
it's literally a one-line function:<BR><BR>function set_post_thumbnail_size(
$width = 0, $height = 0, $crop = false ) {<BR>
add_image_size( 'post-thumbnail', $width, $height, $crop );<BR>}<BR><BR>It's as
simple as that. You should use this function to set the post-thumbnail size. You
should not use any other method.<BR><BR>The "post-thumbnail" is the size used
for "Featured Images" which you enable using add_theme_support(
'post-thumbnails' ). If you have one, you should have the other as well. When in
doubt, look at the default themes. Twenty-X have all had these in
them.<BR><BR>-Otto
<DIV><BR><BR><BR>On Wed, Jul 16, 2014 at 2:40 AM, Philip M. Hofer (Frumph)
<<A href="mailto:philip@frumph.net">philip@frumph.net</A>>
wrote:<BR>><BR>> Thanks Justin! <BR>> <BR>> But what I
don’t get is that when you say, creates a new image size called ‘post-thumbnail’
.. do you mean it overrides the default ‘post-thumbnail’ ? when using
set_post_thumbnail_size() ..which makes sense given the name of the function
itself<BR>> <BR>> <BR>> <BR>> From: Thomas from
ThemeZee<BR>> Sent: Tuesday, July 15, 2014 11:34 PM<BR>> To: Discussion
list for WordPress theme reviewers.<BR>> Subject: Re: [theme-reviewers]
set_post_thumbnail_size<BR>> <BR>> Thanks for this information,
Justin, I didn't know this funciton. You never stop learning ;)<BR>><BR>>
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?<BR>><BR>><BR>>
2014-07-16 7:51 GMT+02:00 Justin Tadlock <<A
href="mailto:justin@justintadlock.com">justin@justintadlock.com</A>>:<BR>>><BR>>>
I've been seeing a trend lately where theme authors are getting conflicting
advice from reviewers on the use of `set_post_thumbnail_size()`. Some
reviewers are saying not to use it. Other reviewers are saying not to
input any parameters. I wanted to address this and make sure we're all on
the same page here.<BR>>> <BR>>> First, let's look at the
function itself: `set_post_thumbnail_size()`. This function was created so
that theme authors could have an easy method for creating post thumbnails that
fit in with the design of their theme. You can read Mark Jaquith's
original tutorial on this here:<BR>>> <A
href="http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/">http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/</A><BR>>>
<BR>>> In order to have a thumbnail that fits in with the design of your
theme, you actually have to set those width and height parameters.
Otherwise, it's pretty useless.<BR>>> <BR>>> This function was
created so that theme authors could get around the limitations of user settings
(large, medium, and thumbnail sizes), which the theme has no control over.
In fact, when a custom thumbnail size is set using this function, it creates a
new image size called `post-thumbnail`. This is kind of important because
it's also the default image size used when calling functions like
`the_post_thumbnail()`.<BR>>> <BR>>> This is really no
different than using the `add_image_size()` function and naming the size
`post-thumbnail`. WP core developers just took it one step farther and
gave us an even easier-to-use function for setting up theme thumbnail
sizes. Very nice of them to do that.<BR>>> <BR>>>
`set_post_thumbnail_size()` exists for theme authors. There's no reason we
shouldn't be using it or telling theme authors that they shouldn't. I'll be more
than happy to answer any other questions about the function or in this general
area.<BR>>><BR>>>
_______________________________________________<BR>>> theme-reviewers
mailing list<BR>>> <A
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</A><BR>>>
<A
href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</A><BR>>><BR>>
<BR>><BR>> ________________________________<BR>>
_______________________________________________<BR>> theme-reviewers mailing
list<BR>> <A
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</A><BR>>
<A
href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</A><BR>><BR>><BR>>
_______________________________________________<BR>> theme-reviewers mailing
list<BR>> <A
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</A><BR>>
<A
href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</A><BR>><BR></DIV></DIV>
<P>
<HR>
_______________________________________________<BR>theme-reviewers mailing
list<BR>theme-reviewers@lists.wordpress.org<BR>http://lists.wordpress.org/mailman/listinfo/theme-reviewers<BR></DIV></DIV></DIV></BODY></HTML>