Support » Fixing WordPress » Author Posts Page – exclude posts

  • Resolved Martin Black


    I currently have a page template author.php which is almost identical to the Sample Author Page Template. However, how do I control the which posts it generates?

    Essentially I would like to exclude categories from which it gets the authors posts; Is this possible?


Viewing 1 replies (of 1 total)
  • Martin Black


    I have solved this by simply using the query_posts to exclude categories. My author.php now has this line just before the loop starts:

    <?php query_posts($query_string . '&cat=-69,-68'); ?>
    <?php while (have_posts()) : the_post(); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Author Posts Page – exclude posts’ is closed to new replies.