• 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)
  • 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

    (@anaeditor)

    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.