While on a category archive page, let user filter that category with other categories

[ad_1]

I am making a custom recipes theme and have set many categories.

For all the categories we want to be able to filter between sweet recipes and savory recipes.

which are also categories. my desire is that for example, a visitor on the pastries category archive page should be able to click on sweet and see the pastries that are sweet. Check the image for the mock up design to have an idea.

Querying category\_\_and (current category + sweet) on click would be ideal i think…

​

[ad_2]
1 Comment
  1. I would use a different taxonomy like tags for these additional attributes like “Sweet”, “Savory”, “Gluten free” etc.

    In either case, you just have to use the taxonomy parameters with WP_Query:

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer