I am on latest version of WordPress. I have scoured the codex concerning wp_query and meta_query. I also read through these:
Here are my $args for the query:
$args = array (
'post_type' => array( 'member' ),
'tax_query' => array(
array(
'taxonomy' => 'group',
'field' => 'slug',
'terms' => array('town-board'),
)
),
'meta_query' => array(
'relation' => 'OR',
'chairman' => array(
'key' => '_town-board_position',
'value' => 'Town Chairman',
),
'supervisor' => array(
'key' => '_town-board_position',
'value' => 'Supervisor',
'compare' => 'LIKE',
),
),
'orderby' => array(
'supervisor' => 'ASC',
'chairman' => 'DESC',
),
);
I have tinkered with different orderby configurations, but it doesn’t seem to produce the results I would like.
With the $args above I get the chairman listed first but the Supervisors are listed backwards. So, it goes Chairman, Supervisor 3, Supervisor 2, Supervisor 1.
I want to sort this so that chairman is first and then Supervisor 1, Supervisor 2 and so on are listed in order below the chairman.
I just can’t seem to wrap my head around this…
Any input would be appreciated. If more details are needed please let me know.