Searching and displaying results from ONLY one cat
hi yall. im having a problem doing this. here is the code i have as of now.
<form id=”searchform” method=”get” action=”/reviews.php”>
<input type=”text” name=”s” id=”2″ size=”15″ />
<input type=”submit” name=”submit” value=”Search” />
<input type=”hidden” name=”cat” value=”2″ />
i am trying to do a second page with wordpress and only show one catagory on it.
I want to only search catagory 2 and its sub catagorys. As of now, i can search , but when i hit somethign that has a result, it bring me back to my main page showing posts from cat 1 which is not what i want.
i want to NEVER show posts from anything but cat 2.
- The topic ‘Searching and displaying results from ONLY one cat’ is closed to new replies.