Title: Changing the size using
Last modified: August 19, 2016

---

# Changing the size using

 *  [HorrorUK](https://wordpress.org/support/users/horroruk/)
 * (@horroruk)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/changing-the-size-using/)
 * On my site, I am using the following command to show the featured image on a 
   post:
 * `<?php the_post_thumbnail(); ?>`
 * This is currently showing at 160*155 pixels, but I want to make it smaller than
   that. I can’t figure out how to do that, any ideas?
 * I have the following in my functions.php file:
 * `add_theme_support( 'post-thumbnails' );`
 * Do I do something on there?
 * Thanks
 * **EDIT:**
 * Reading through some of the codex, I just tried the following, but it makes no
   difference:
 * functions.php
 *     ```
       if ( function_exists( 'add_theme_support' ) ) {
       add_theme_support( 'post-thumbnails' );
       set_post_thumbnail_size( 150, 150, true ); // default Post Thumbnail dimensions (cropped)
   
       // additional image sizes
       // delete the next line if you do not need additional image sizes
       add_image_size( 'category-thumb', 100, 9999 ); //300 pixels wide (and unlimited height)
       }
       ```
   
 * home.php
    `<?php the_post_thumbnail( 'category-thumb' ); ?>`

The topic ‘Changing the size using’ is closed to new replies.

## Tags

 * [thumbnail](https://wordpress.org/support/topic-tag/thumbnail/)

 * 0 replies
 * 1 participant
 * Last reply from: [HorrorUK](https://wordpress.org/support/users/horroruk/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/changing-the-size-using/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
