<!--燕窝的功效--> <aside id="post_cat-2" class="widget post_cat wow fadeInUp" data-wow-delay="0.3s"><h3 class="widget- title"><i class="fa fa-bars"></i><a href="http:///ywgx/" rel="bookmark" target="_blank" title="燕 窝的功效与作用">燕窝的功效与作用</a></h3> <div class="post_cat"> <ul> <?php query_posts('cat=1082&showposts=10'); ?> <?php while (have_posts()) : the_post(); ?> <li class="cat-title"><i class="fa fa-angle-right"></i><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="_blank" rel="bookmark"><?php the_title(); ?></a></li> <?php endwhile; wp_reset_query(); ?> </ul> <div class="clear"></div> </div> <div class="clear"></div></aside> <!--燕窝价格--> <aside id="post_cat-2" class="widget post_cat wow fadeInUp" data-wow-delay="0.3s"><h3 class="widget- title"><i class="fa fa-bars"></i><a href="http:///ywjg/" rel="bookmark" target="_blank" title="燕 窝价格">燕窝价格</a></h3> <div class="post_cat"> <ul> <?php query_posts('cat=1085&showposts=10'); ?> <?php while (have_posts()) : the_post(); ?> <li class="cat-title"><i class="fa fa-angle-right"></i><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="_blank" rel="bookmark"><?php the_title(); ?></a></li> <?php endwhile; wp_reset_query(); ?> </ul> <div class="clear"></div> </div> <div class="clear"></div></aside> <!--分类问答标签--> <aside id="post_cat-2" class="widget post_cat wow fadeInUp" data-wow-delay="0.3s"><h3 class="widget- title"><i class="fa fa-bars"></i><a href="http:///tag/yanwoask/" rel="bookmark" target="_blank"> 燕窝问答</a></h3> <div class="post_cat"> <?php $args=array( 'tag' => 'yanwoask', 'showposts'=>10, //输出的文章数量 'caller_get_posts'=>1 ); ?> <ul> <?php $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <li class="cat-title"><i class="fa fa-angle-right"></i><a href="<? php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" target="_blank"><?php the_title(); ?></a></li> <?php endwhile; } wp_reset_query(); ?> </ul> <div class="clear"></div> </div> <div class="clear"></div></aside> |
|
来自: Ivan_rich > 《wordpress》