Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    – by default when you upload any image by using media uploader in WordPress it creates three different size like thumbnail(default 150px x 150px max), medium(default 300px x 300px max), large(default 640px x 640px max), and the fourth is full original image size.
    – if you want to access custom size then add the following code in your function.php:

    add_image_size ( 'thumb', 220, 180, true );
    //and then call featured image in your template like this
    <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
    the_post_thumbnail('thumb'); } ?>

    -change 220, 180 to your liking

Viewing 1 replies (of 1 total)
  • The topic ‘The images are automatically cropped?’ is closed to new replies.