<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>将上面那行修改为:
<?php if (have_posts()) : query_posts($query_string .'&cat=-4'); ?> <?php while (have_posts()) : the_post(); ?>其中的&cat=-4里的4是分类id,怎么获取不会的就baidu下吧,'-'号是排除的意思。
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>将上面那行修改为:
<?php if (have_posts()) : query_posts($query_string .'&cat=-4'); ?> <?php while (have_posts()) : the_post(); ?>其中的&cat=-4里的4是分类id,怎么获取不会的就baidu下吧,'-'号是排除的意思。