Title: Problem with thumbnails
Last modified: August 20, 2016

---

# Problem with thumbnails

 *  [Ant94](https://wordpress.org/support/users/ant94/)
 * (@ant94)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/problem-with-rhumbnails/)
 *     ```
       if ( function_exists( 'add_theme_support' ) ) {
       	add_theme_support( 'post-thumbnails' );
               set_post_thumbnail_size( 150, 150, true );
       }
       ```
   
 *     ```
       <div class="news_img">
       					<?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'single-post', array('class' => 'news_img') ); } ?>
       					</div>
       ```
   
 *     ```
       div.news_img {
   
       	width: 150px;
       	height: 150px;
       	float: left;
   
       	padding: 10px;
   
       }
   
       div.news_img img {	
   
       	border: solid black thin;	
   
       	display: block;
       	margin: 0 auto;
       }
       ```
   
 * The problem is that I can’t make any thumbnail during writing the post because
   when I choose: _Use as featured image_ i get the answer: _Could not set that 
   as the thumbnail image. Try a different attachment. _
 * What should I do? Where is the problem?

The topic ‘Problem with thumbnails’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Ant94](https://wordpress.org/support/users/ant94/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/problem-with-rhumbnails/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
