Hello,

not sure whether this is the correct forum (as it's related to WordPress) but, given it's PHP, I hope it's acceptable.

I know nothing about PHP and am trying to display one entry that belongs to category a (featured category) and b (other category), one entry belonging to category a and c, and so on.
Categories b, c, d, e, f, etc. are not sub categories. They are all top level categories.

I assume one would do that with an array?

In my own primitive terms, here is what I mean:

if entry is in the featured category (a) AND if entry is in category (b),
then output entry,

if entry is in the featured category (a) AND if entry is in category (c),
then output entry,

else, don't display anything.

So, basically, I'm trying to get entries to display that are in category a and category b, in category a and category c.

I haven't a clue how I'd go about translating this into a proper PHP function for WP.

Any pointers are much appreciated.

Thanks!