Title: Featured image doesn&#039;t appear
Last modified: August 19, 2016

---

# Featured image doesn't appear

 *  Resolved [baia](https://wordpress.org/support/users/baia/)
 * (@baia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/featured-image-doesnt-appear/)
 * I add add_image_size( ‘mysize’, 300, 250, true ); to my function.php and call
   the_post_thumbnail(‘mysize’); in my loop.php. After that I uploaded featured 
   images to my posts, yet no image appears when I visit the site.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/featured-image-doesnt-appear/#post-1897752)
 * Review [Post_Thumbnails](http://codex.wordpress.org/Post_Thumbnails).
 *  Thread Starter [baia](https://wordpress.org/support/users/baia/)
 * (@baia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/featured-image-doesnt-appear/#post-1897909)
 * I reviewed it again, but I still can’t see what’s wrong with my code..
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/featured-image-doesnt-appear/#post-1897914)
 * Is something like this in your functions.php?
 *     ```
       if ( function_exists( 'add_theme_support' ) ) {
       	add_theme_support( 'post-thumbnails' );
               set_post_thumbnail_size( 150, 150 ); // default Post Thumbnail dimensions
       }
   
       if ( function_exists( 'add_image_size' ) ) {
       	add_image_size( 'mysize', 300, 250, true );
       }
       ```
   
 * Do you have something like this **inside the loop** in your theme’s template 
   files?
 *     ```
       <?php
       if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
         the_post_thumbnail('mysize');
       }
       ?>
       <?php the_content(); ?>
       ```
   
 * Did you put that in the right template file? What file did you put it in?
 * Can you put the full content of the template file you are using to show the thumbnails
   in the [pastebin](https://wordpress.org/support/topic/featured-image-doesnt-appear/wordpress pastebin?output_format=md)
   and link back to it here
 *  Thread Starter [baia](https://wordpress.org/support/users/baia/)
 * (@baia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/featured-image-doesnt-appear/#post-1897921)
 * Yes I did these things in the right places but without if() statements and now
   it works !!
 * I don’t understand why it did not work though. The if ( function_exists( ‘add_image_size’))
   is true because this function exists in my twentyten default theme. Same with
   the if ( has_post_thumbnail() ) statement.
 * If these if() statements are true anyway, my code should work without them isn’it?
   Yet it doesn’t o_O
 *  Thread Starter [baia](https://wordpress.org/support/users/baia/)
 * (@baia)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/featured-image-doesnt-appear/#post-1897934)
 * Actually it does. Thanks for your help and I advise myself to stop drinking so
   much orange juice.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Featured image doesn't appear’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [baia](https://wordpress.org/support/users/baia/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/featured-image-doesnt-appear/#post-1897934)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
