Hi I want to create a custom post search under a particular category. How can I create that.
How to create a custom where condition related to that particular category?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should try hijacking the search results (in search.php) if you have a certain query.
Meaning:
if a category (ID) is sent (perhaps as
catID) by the search form together with the usualsvariable, do a newquery_posts('s=$s&paged...&cat=$catID');.else just let the internal search take care of the results.