Pre Get Posts / Multiple Meta Keys / Orderby Single Key

Tried more than a few variances to enable my pre_get_posts callback function to display posts that possess one, or both, of 2 separate meta_keys, upon display to then orderby a single meta_key.

Here is a pastebin of the various attempts

Read More

Namely I am able to display correctly via 2 separate keys but am unable to then orderby a single one of them, what am I missing to do this?

Related posts

Leave a Reply