I've some questions regarding how to best do queries on custom publish type. For instance I've got a publish kind of "listing" and in this particular "listing" publish type, I've got a metafield array that consists of "category => Box" and "subcategory => paper".

Now I wish to write a question to drag the publish kind of "listing" but only when they match the metafield worth of "Box" in category.

And just how will i go a step further and query group of "Box" and subcategory of paper?

I only understand how to list all publish by publish-type but am unsure how you can pull specific queries.