Cant Get Thumbnails to display on my homepage

  • Author
  • #514106


    I am having some issues getting my wordpress to display Thumbnails on my homepage. I was hoping to get some help.

    I believe this the code I need to have modified.

    <!--The Following code checks for yout thumbnail image-->
    		// check for thumbnail
    $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true);
    // check for thumbnail class
    $thumb_class = get_post_meta($post->ID, 'Thumbnail Class', $single = true);
    // check for thumbnail alt text
    $thumb_alt = get_post_meta($post->ID, 'Thumbnail Alt', $single = true);
    <span class="titles"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title2('', '...', true, '30') ?></a></span>
    <!--Display thumbnail if found-->
    <?php // if there's a thumbnail
    if($thumb !== '') { ?>
    <div class="thumbnail-div">
    <img src="<?php echo $media; ?>" width="120px" height="120px" alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>" />
    <?php } // end if statement
    // if there's not a thumbnail
    else { echo ''; } ?>
    <div class="post-inside">
    <span class="post-info">Posted by <?php the_author() ?> on  <?php the_time('m jS, Y') ?></span>
    <?php the_content_limit(245, ""); ?>
    <div style="clear:both;"></div>	
    <?php $ctr++; } ?>
    <?php endwhile; ?>
    <!--end recent post (single)-->

    my webpage or blog is

    Thank you for your help



    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at If your question is about a self-hosted WordPress blog then you’ll find help at the forums.

    If you don’t understand the difference between and, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

The topic ‘Cant Get Thumbnails to display on my homepage’ is closed to new replies.