Home › Forums › Backend Issues (wp-admin) › Query two fields and orderby another › Reply To: Query two fields and orderby another
I found a WP ticket that says there’s currently an issue with meta_query and the ‘OR’ relation that I think is causing the issue – https://core.trac.wordpress.org/ticket/25538
As a temporary solution I’m instead filtering out all non ‘Faculty’ and ‘Staff’ members by using ‘NOT LIKE’ meta_query(s):
'meta_query' => array(
array(
'key' => 'profile_type',
'value' => 'Adjunct',
'compare' => 'NOT LIKE'
),
array(
'key' => 'profile_type',
'value' => 'Emeriti',
'compare' => 'NOT LIKE'
),
(etc...)
)
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.