0

I need the query with merge of two CPT posts (for example cpt1 & cpt2). The problem is when is need to add the 'variable' only for one CPT, that is the a custom field and relevant value (for example custom field 'played').

In one query, I need to have all posts of cpt1 but for cpt2 I need to have only the posts that have as custom field 'played' the value as '1'.

Is it possible?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.