Quantcast
Channel: WordPress.com Forums » Recent Topics
Viewing all articles
Browse latest Browse all 74536

mnewel on "Cant Get Thumbnails to display on my homepage"

$
0
0

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 www.moneysurge.net

Thank you for your help


Viewing all articles
Browse latest Browse all 74536

Trending Articles