WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Author Posts Page – exclude posts

[Resolved] Author Posts Page – exclude posts

  • Martin Black
    Member

    @ownedbyhleb

    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?

    Thanks.

Viewing 1 replies (of 1 total)
  • Martin Black
    Member

    @ownedbyhleb

    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 ‘[Resolved] Author Posts Page – exclude posts’ is closed to new replies.