Exclude category from loop problems
-
Hello – hoping someone might be able to help here. I’ve searched google and I can’t find the solution to my problem.
I want to exclude a category from my homepage. I’ve got that working but the problem is it’s ordering it wrong. I looked through the codex to find how to order it but its just not working!
query_posts ($query_string.'&cat=-19&orderby=date&order=DESC');
I think this is correct as when I remove “&cat=-19” I can order the page using DESC or ASC but as soon as I choose to exclude cat 19 it won’t work and puts the old posts at the top.
I even tried a plugin called “Simply Exclude” but it still won’t order it correctly after I’ve excluded the category.
Anyone come across this problem – is it a WordPress bug?
- The topic ‘Exclude category from loop problems’ is closed to new replies.