• Hi,

    I’ve been trying to exclude a category from my home page for two days, but I keep having the same problem.

    The order of the posts is reversed when I implement the following code :
    <?php query_posts(“$query_string&cat=-412”), 412 being the ID of the category.

    Did one of you encoutered the same problem ? I unfortunately can’t give you the link to the wordpress, it’s a private blog for my company.

    Here is the full code for the index page :

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thanks,
    Cachip

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try <?php query_posts($query_string . '&cat=-412').

    Thread Starter cachip

    (@cachip)

    Hello,

    I’ve got the same problem using that line of code : <?php query_posts($query_string . ‘&cat=-412’); ?>

    I can’t find a solution. Even the plugins dedicated to it create this issue. If it can help you, here’s the code of my home page :

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Having troubles using query_posts’ is closed to new replies.