I have 2 dropdowns, each with their own submit button, that let people go to different categories. I keep them separate because my site has 2 general groups of Categories: Group A deals with categories that are names of countries like USA, Canada, Mexico; and Group B deals with categories that are like “culture”, “food”, “news”.
Therefore, one Post on my site might be in one category from Group A (i.e. USA) and then a category from Group B (i.e. “food”).
Currently, I have the 2 separate groups of dropdowns, so this means a user can only see the Category of all the USA posts, or all the Food posts, etc.
However, a user can not see all the posts that are both Food and USA when using the dropdown. I know that if they go to mydomain.com/category/usa/food they can see all the “USA” and “food” posts together, but I can’t figure how to combine the two dropdowns to deliver one URL.
I do not want to have one dropdown that allows for multiple selections, because then I do not want people to choose both USA and Canada or Food and News — they must only choose 1 from Group A and 1 from Group B (or only 1 from Group A and nothing from Group B, or vice versa).
- The topic ‘How to merge 2 categories dropdowns into 1 on WordPress?’ is closed to new replies.