Title: Flex theme and thumbnails
Last modified: August 19, 2016

---

# Flex theme and thumbnails

 *  [anaeditor](https://wordpress.org/support/users/anaeditor/)
 * (@anaeditor)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/flex-theme-and-thumbnails/)
 * I installed the flex theme but can´t get the thumbnails to show the images from
   the videos o photographs posted. Is there anyway to get my wordpress to automatically
   select an image from the post and use it as a thumbnail? Thanks.

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

 *  [tom_taylor_85](https://wordpress.org/support/users/tom_taylor_85/)
 * (@tom_taylor_85)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/flex-theme-and-thumbnails/#post-1621043)
 * Make sure you have this code, or a code like this:
 *     ```
       <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
   
               <a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="70" border="1" style="float:left;margin:0px 10px 0px 0px;" /></a>
   
               <?php else: ?>
   
              <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
   
               <?php endif; ?>
       ```
   
 * Then in the post you add a custom field. Select one that says “thumbnail” and
   add the image URL.
 *  Thread Starter [anaeditor](https://wordpress.org/support/users/anaeditor/)
 * (@anaeditor)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/flex-theme-and-thumbnails/#post-1621276)
 * Thanks for your reply Tom, what Im looking for is for the thumbnail to automatically
   select an image from the content of the post.

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

The topic ‘Flex theme and thumbnails’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [anaeditor](https://wordpress.org/support/users/anaeditor/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/flex-theme-and-thumbnails/#post-1621276)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
