<h2 class="front">آخرین اخبار</h2>

<?php $latest = new WP_query(); $latest->query('showposts='.$mytheme['latest'].'&cat=-'.$mytheme['featured'].',-'.$mytheme['video']); ?>
<ul id="mid-latest">
<?php while ($latest->have_posts()) : $latest->the_post(); ?>

<li>

<div class="lpost">
<a href="<?php the_permalink(); ?>"><?php show_thumb($width=$mytheme['latestthumbW'],$height=$mytheme['latestthumbH'],$crop='T',$quality=95,$blank=false); ?></a>
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="sd"><?php the_time('d M Y'); ?></div>
<p><?php the_excerpt_reloaded($mytheme['latestexcerpt'], '<a>', 'none', FALSE); ?></p>
</div><div class="clear"></div>

</li>

<?php endwhile; ?>
</ul>