我的索引中有此代码。php文件。我有一个不同的静态主页模板,这是博客页面。我试图排除所有类别为“new”的帖子,即tag\\u id“13”
<?php query_posts($query_string . \'&cat=-13\'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><p class=\'lead\'><?php the_title(); ?></p></a>
<p><?php the_excerpt(); ?> <a href="<?php the_permalink()?>">read in full</a></p>
<p class=\'muted\'><small>Written by: <?php the_author_posts_link(); ?><br>
<?php the_time(\'F jS, Y\') ?></small></p><hr>
<?php endwhile; ?>
你知道为什么这不起作用吗?