我尝试在侧栏中撤消特定类别的帖子顺序。 但我无法让它发挥作用。
<?php query_posts('showposts=8&cat=5$query_string . "&order=ASC"'); if (have_posts()) : ?>
<li id="senasteNytt">
<?php while (have_posts()) : the_post(); ?>
<h3 class="widget-title"><?php the_title(); ?></h3>
<div class="sidbarContent"><?php the_content(); ?></div>
<li>
<?php endwhile; ?>
</li>
<?php endif; wp_reset_query();?>
</ul>
<div class="clear"></div>
答案 0 :(得分:0)
global $query_string;
query_posts($query_string.'&showposts=8&cat=5&order=ASC');