How to filter search via several categories?
-
Hi ,
Suppose I want to filter a search by certain posts’ categories, I know I might write in the search form a select box like this:
<select name="cat"> <option value="1">Category A</option> <option value="2">Category B</option> <option value="3">Category C</option> // ...and so on </select>
But what if I want that one of the user’s selections will perform search via several categories? How that can be passed throug the form?
Is it possible to pass more than one value in an option?
I tried something like :<option value="3,4,5,6">Search in Articles</option>
but it didn’t worked and searched through all categories, not only these four.
Is there a way to do that?Thanks,
M
- The topic ‘How to filter search via several categories?’ is closed to new replies.