我有个问题。我需要,在我的档案里。php文件,排除特定类别。考虑到我现在所拥有的,我该如何做到这一点?
代码如下:
<?php
query_posts(array(
\'post_type\' => \'post\',
\'showposts\' => 5
) );
?>
<?php while (have_posts()) : the_post(); ?>
<div class="blogcontentlinks">
<a style="text-decoration:none;" href="<?php the_permalink() ?>"><h2><?php the_title(); ?></h2></a>
<p style="">Posted on <?php the_time(\'m/j/y g:i A\') ?><br />Categories: <?php the_category(\' \') ?><br />Tags: <?php the_tags(\' \') ?></p>
<p><?php the_excerpt(); ?></p>
<p> </p>
</div>
<?php endwhile;?>
谢谢你