<?php if (have_posts()) : ?>
<?php query_posts('cat='.$cat_ID. '&offset=1&offset=2'); ?>
<?php while (have_posts()) : the_post(); ?>
<li class="entry-li">
<article class="post-small clearfix">
<div class="entry-img">
<a href="<?php the_permalink() ?>">
<?php include( TEMPLATEPATH . '/thumbnail/archivethumbnail.php' ); ?>
</a>
</div>
<div class="entry">
<h3 class="entry-title"><a href="<?php the_permalink() ?>"><?php echo mb_strimwidth(get_the_title(), 0, 100,''); ?></a></h3>
<span class="listcon"><small> <?php if (has_excerpt()){ echo wp_trim_words( get_the_excerpt(), 55, '…' );} elseif (post_password_required()){echo wp_trim_words( get_the_content(), 22, '…' ); }else {echo wp_trim_words( get_the_content(), 55, '…' );} ?></small></span>
<ul class="entry-meta list-inline">
<li class="entry-date">
<a href="<?php the_permalink() ?>"><?php the_date_xml()?></a>
</li>
</ul>
</div>
</article>
</li>
<?php endwhile; ?>
<?php endif; wp_reset_query(); ?>
评论(0)
暂无评论