Combined portfolio categories filter

Hello all,

I have setup a portfolio containing products that belong to categories.

Is it possible in a page say using "Portfolio Grid" to display all portfolio products that belong to a combination of categories?

Say I have products ONE,TWO and THREE.

Product ONE belongs to categories A, B and C

Product TWO belongs to categories A, B and D.

Product THREE belongs to categories A, C and D.

Is there a way to display portfolio products that belong to both categories A AND D? That is products TWO and THREE.



Thanx


Comments

  • Hello,
    Of course, just use the Multiple Categories functionality:

    But, it will display products which have at least, one of the categories, let's say products which have A, B or C

    Thanks
  • In Multiple Categories field, category names are separated by commas.

    This means that category names are joined with the OR operator.

    It will display all portfolio products that belong to CategoryA OR CategoryB OR CategoryC e.t.c.
    If a product belongs to even one of the above categories, it will be displayed.

    What I'm looking for is to use the AND operator instead.

    I want to display all portfolio products that belong to CategoryA AND CategoryB AND CategoryC e.t.c.
    If a product belongs to all of the above categories, it will be displayed.

    Is this possible?

    Regards
    Costas

  • Hey,
    what you describe is what Pablo has proposed you. The sollution is correct, the multiple categories inserted in that field https://prnt.sc/t6rsmf will go CatA and CatB and ...
    just separete them with a coma.

    If you have a post that has multiple categories and you want to show it only if all of the categories are selected then it will not be possible. This is much more complicated and you woul have to custom code it.

    thanks
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.