arkadaşlar resimli benzer yazılar bileşeni gibi birşey yapmak istiyorum konu başlığı ve resmini çekebiliyorum fakat yazı özetini okuduğum postu çekiyor bu kodlamadaki hata nerede?

<div id="latest_area">
<h3>Rastgele Yazılar</h3>
<ul style="display:inline;">
                <?php $rand_posts = get_posts('numberposts=5&orderby=rand'); foreach( $rand_posts as $post ) : ?>
                <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
                    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="border: 3px solid #2E2A2A; margin: 0px 10px 0px 0px; float: left;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="110" height="60"/></a>
                <?php else: ?>
                       <a href="<?php the_permalink() ?>" rel="bookmark"><img style="border: 3px solid #2E2A2A; margin: 0px 10px 0px 0px; float: left;"  src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a>
                <?php endif; ?>                
                        <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
                <?php the_excerpt(); ?>
                
                <div style="border-bottom:2px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
                
                                <?php endforeach; ?>
                
</ul>
</div>