WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Author Posts Page - exclude posts (2 posts)

  1. Martin Black
    Member
    Posted 2 years ago #

    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.

  2. Martin Black
    Member
    Posted 2 years ago #

    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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic