Use not custom fields in get_posts() meta_query?
No, it doesn’t work like that because meta_query is for custom fields and tax_query is for taxonomies. But what you could do is run two separate queries to get all of the IDs that qualify, and then use those IDs in a 3rd query with post__in. For example: $cat_query_args = array( ‘posts_per_page’ => -1, ‘cat’ … Read more