Query posts to exclude a category in the search results
-
Hello everyone,
I tried using the template tag query_posts(“cat=-7”);
to make it so my search results did not get that category id 7, however now the search results don’t really work it just searches one category( it seems) and doesn’t have pagination. I am new to PHP but understand a little.Does anyone have any idea or know how to accomplish what I am looking for.
Thanks,
Aaron
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Query posts to exclude a category in the search results’ is closed to new replies.