- August 4, 2016 at 3:08 pm #9677
Hi, I know this is probably a silly question, but wondering if you can help me.
I have a number of pages in a category. (Using a plugin, added categories for pages.) I’d like to create a search instance that allows me to only search that category of pages. Is this possible? If not, is there another way to do it? Tags? How can I search a subset of pages?August 5, 2016 at 6:48 am #9682
On the back-end you can configure the plugin to exclude certain categories, but it’s not the most convenient solution, because if you add new categories, you will always have to exclude those as well. (Advanced Options -> Exclude results panel) For older plugin versions (pre 4.9.3) this is the only option.
Plugin version 4.9.3 and further:
A better solution is to put the following code to the functions.php file in your current theme directory:
All you need to do is change the $category_id variable to the category ID you need.Best,
If you like my products, don't forget to rate them on codecanyon :)
August 5, 2016 at 3:39 pm #9686
jmacklerParticipantYou cannot access this content.August 8, 2016 at 11:28 am #9690
You must be logged in to reply to this topic.