Forums › Forums › Search & Filter Pro › Search with 2 drop-down lists for Categories and Subcategories?
Tagged: subcategories
- This topic has 10 replies, 2 voices, and was last updated 4 years, 7 months ago by Anonymous.
-
Anonymous(Private) April 14, 2020 at 3:13 am #239879
I’m sure this MUST be able to be done but I just can’t work out how.
I have created categories and subcategories for my posts.
Some posts belong to multiple categories so I am wanting to be able to search by Category and have this refine the search of subcategories from a second drop-down list.
What am I missing here?Trevor(Private) April 14, 2020 at 11:12 am #239919Rather than having lots of Parents and Children, make custom taxonomies for them, using a plugin like Custom Post Type UI (it is free and very good).
You simply go to make a new taxonomy and assign it to the post type. Let us say you have a site for cars. You might make a custom taxonomy (one each) for:
Year
Make
Model
ColorHow you then go about using these depends on how many posts you have in place. I can advise you best if you can work out what custom taxonomies you need (following my guidance) and how many terms would be in each, and how many posts.
Anonymous(Private) April 14, 2020 at 1:01 pm #239941Hi Trevor,
Thanks for the reply mate. I have already tried Custom Post Type UI lol. Great plugin but doesn’t help with what I am needing.
To give you an example…Company 1 produces products for:
Food and Drink –> DairyCompany 2 produces products for:
Food and Drink –> Orange JuiceCompany 2 produces products for:
Food and Drink –> Dairy AlternativesCompany 4 produces products for:
Automotive –> Car CareI have tried using taxonomies but it won’t narrow the search as I need.
So if I search for Food and Drink, it would narrow it to Companies 1,2 and 3
But then if I want to narrow that search to only show Orange Juice it doesn’t filter it as such.Maybe I’m missing something?
-
AuthorPosts