2 thoughts on “WPBeginner explains WordPress image sizes

  1. Good article but it doesn’t mention the set_post_thumbnail_size() function which you can use to set the default WordPress image size.

    This default size can then be retrieved with just:

    There is also a useful function to test for the existence of a post thumbnail before you try and use it:

    if ( has_post_thumbnail() ) {
    the_post_thumbnail(); // use default theme thumbnail size

Leave a Reply

Please note that WPCandy is a moderated community.

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>