Viewing 2 replies - 1 through 2 (of 2 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 (first check if it’s already there):

    add_image_size ( 'thumb', 220, 180, true ); } //Change the size to your lking. Remember, there is no need to add the default sizes, they are automatically included. You just need to add image sizes for custom thumbnails.
    and then call featured image in your template like this:
    if ( has_post_thumbnail() ) { the_post_thumbnail('thumb'); }

    Thread Starter Keplos

    (@keplos)

    Thanks for the reply but this has not worked. Websites such as the Verge and others do this kind of thing too, just wondering if they use a plugin? Easier way to do it without messing with the themes code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Making image full size of post help!’ is closed to new replies.