[Resolved] Query posts to exclude a category in the search results
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.
- The topic ‘[Resolved] Query posts to exclude a category in the search results’ is closed to new replies.