Forums

[resolved] Author Template Problem (2 posts)

  1. fatihturan
    Member
    Posted 3 years ago #

    Hello everyone.

    I'm using author template (author.php) for display each author posts. I'm using query_posts("&cat=-5"); code snippet for exclude a category.

    But if i use this snippet author template isn't working. So it's displaying all author with own posts (in example: http://www.sinemalardan.com/author/admin/ -it's will be display other author's post).

    My blog is here: http://www.sinemalardan.com

    Thanks.

  2. fatihturan
    Member
    Posted 3 years ago #

    I solved this problem with move query_posts() function to page of top like this:
    query_posts( $query_string . '&cat=-5' );

    Thanks Viper007bond. :)

Topic Closed

This topic has been closed to new replies.

About this Topic