I want my tax_query terms to display posts in the order I have them listed in the array below but it is not following the order listed.
$args = array(
'post_type' => 'staff',
'posts_per_page' => '-1',
'tax_query' => array(
array(
'taxonomy' => 'staff-title',
'field' => 'slug',
'terms' => array(
'editor-in-chief',
'managing-editor',
'fiction-editor',
'poetry-editor',
'nonfiction-editor',
'production-manager'
)
)
)
);
$my_query = new WP_Query( $args );
if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post();
echo'<div class="loop four columns">';
echo'<div class="column-nest">';
echo'<h5 class="staff-title big-top-space">'; the_field('staff_title'); echo'</h5>';
echo'<h6 class="staff-name bottom-space">'; the_field('staff_member_name'); echo'</h6>';
echo'</div> <!-- column-nest -->';
echo'<figure class="staff-photo-border">';
echo'<img class="column-nest" src="'; the_field('staff_member_photo'); echo'" alt="photo of the_field(\'staff_member_name\');" />';
echo'</figure> <!-- staff-photo-border -->';
echo'</div> <!-- loop four columns -->';
the_content();
endwhile; endif; ?>
instead it displays posts in this order:
Fiction Editor
Fiction Editor
Poetry Editor
Poetry Editor
Nonfiction Editor
Production Manager
Managing Editor
Editor-in-Chief
terms
array?