Forums

Strange output when modifiying query_posts with &cat=-id (1 post)

  1. gol
    Member
    Posted 1 year ago #

    Hi there,

    i have a lot of posts from two categories that i want to exclude from my home page. I modified my index.php:
    if ( is_home() ) { query_posts($query_string . '&cat=-42,-43); }

    The above stated code did work, but today i recognized my posts are sorted ascendig by date. If i delete the statement the posts are displayed normaly (descending by date, all categories). When i add the statement now the posts are descending by date and the query_posts seems to reject all conditions (for example: &order=DESC&orderby=title&cat-43,-42). Nothing happens - just the posts in reversed order.

    The posts are in category 43, which is nested in category 42.

    Anyone has an idea about that? A bug?

    Sincerly,
    gol

Topic Closed

This topic has been closed to new replies.

About this Topic