Martin Black
Member
Posted 1 year 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.
Martin Black
Member
Posted 1 year 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(); ?>