Ignore certain categories in Loop – Posts not in order!!
-
I’m trying to get my WordPress theme to retrieve all posts, except ones in a certain category. I’m using the following code:
query_posts('orderby=post_date&order=desc&cat=-7');
While this does successfully remove all posts from category 7, the posts do not display in order. They seem to show in a random order.
I initially thought maybe it was a glitch in 2.5; but I’ve updated to 2.6, and same thing!How can I fix this? I’m going crazy over it!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ignore certain categories in Loop – Posts not in order!!’ is closed to new replies.