How to show items only which have certain number of matched data?

Basically I have a similar section which should be shown by that category name matching current page’s category.

So I run a simple contains and it basically shows all that have category, I want to set a limit so only if 2 or more categories match then show that image.

The category database is just text. Should I be using a list category or single is fine?

Single is storing data as item1 , item2 , item 3.

Any help?

This topic was automatically closed after 70 days. New replies are no longer allowed.