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

Comments are closed.