 <div class="sidebox">

    <h3 class="title_a nobg"><span class="fl">节日礼物</span></h3>

    <div class="picwall"><?php $posts = get_posts( "category=22&numberposts=16" ); ?>
 <?php if( $posts ) : ?>
 <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
     <li><?php dm_the_thumbnail4(); ?>
         <p> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
     </li>
     <?php endforeach; ?>
 
 <?php endif; ?>

 </div>

    <div class="clear"></div>

    <div class="tags mt1">

      <ul>

        <p><span class="fl">热门关注</span><a target="_blank" href="/tags" class="fr">查看更多</a></p>

        

        <?php wp_tag_cloud('smallest=12&largest=12&unit=px&number=40&orderby=count&order=DESC');?>
        

      </ul>

    </div>

    <div class="clear"></div>

    <h3 class="title_a mt1"><span class="fl">神店铺</span><a target="_blank" href="http://www.nilaixuan.com/archives/category/dianpu" class="fr">查看更多</a></h3>

    <div class="i_shops">
         <?php $posts = get_posts( "category=10&numberposts=8" ); ?>
 <?php if( $posts ) : ?>
 <ul class="list_img_two"><?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
     <li>
        <a target="_blank" style="opacity: 0.65;" href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a><img src="<?php if(get_post_meta(get_the_ID(), "img", true)) : ?><?php echo get_post_meta(get_the_ID(), "img", true); ?><?php endif; ?>">
     </li>
     <?php endforeach; ?>
 <div class="clear"></div></ul>
 <?php endif; ?>
</div>

    <div class="clear"></div>

    <!-- /commend -->

    <h3 class="title_a mt1"><span class="fl">随机推荐</span></h3>

    <div class="rand list1"> 


<?php
global $post;
$postid = $post->ID;
$args = array( ‘orderby’ => ‘rand’, ‘post__not_in’ => array($post->ID), ‘showposts’ => 10);
$query_posts = new WP_Query();
$query_posts->query($args);
?>
<?php while ($query_posts->have_posts()) : $query_posts->the_post(); ?>
<dl>
   <dt><?php dm_the_thumbnail5(); ?></dt>
 <dd> <a href=”<?php the_permalink(); ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a></dd>
<dd><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 75,"..."); ?></dd>

 </dl>
<?php endwhile; ?>

 </div>

    <h3 class="title_a mt1"><span class="fl">热点内容</span></h3>

    <div class="hot">

      <ul class="c1">
<?php get_timespan_most_viewed( $mode = '', $limit = 10,$days =50);?><!--调用浏览次数最多的文章-->
      </ul>

    </div>

  </div>
