Need help? Check out our Support site, then


Cant Get Thumbnails to display on my homepage

  1. 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-->
    		<?php
    		// 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(); } ?>" />
    </div>
    <?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>	
    
    <div style="clear:both;"></div>	
    
    <?php $ctr++; } ?>
    
    <?php endwhile; ?>
    <!--end recent post (single)-->

    my webpage or blog is http://www.moneysurge.net

    Thank you for your help

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

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

    If you don't understand the difference between WordPress.com and WordPress.org, 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.

Topic Closed

This topic has been closed to new replies.

About this Topic