Still looking for help with your theme?
I’m using the flashlight theme and have created several items in the portfolio. I’d like to create a search function that will only return results within a specific category in the post_type=portfolio.
I know how to query the specific post_type, by adding: input type=”hidden” name=”post_type” value=”portfolio” /
to the standard WP search form, but that returns ALL results that are post_type portfolio. I’m not sure how to modify the form, or create a function, to query both post_type AND portfolio category so I only get portfolio items in the category I want.
input type=”hidden” name=”cat” value=”11” / works for post_type=post, and a given category.
I’ve searched through WP’s docs and forums for setting up custom queries, search filters, forms, etc. but am having trouble piecing it all together.
Any help would be greatly appreciated.