Custom order of Taxonomy Terms

For anyone having the same issue, here’s how I ended up solving this. I installed the WP Term Order plugin and then used the following code, the magic happens in the ‘orderby’ => ‘order’ line where the ‘order’ is being pulled from the drag and drop menu order functionality in the admin added by the plugin.


$custom_terms = get_terms('instruction_categories');

foreach($custom_terms as $custom_term) {
wp_reset_query();

$args = array(
    'post_type' => 'instruction-sheets',
    'orderby' => 'meta_value',
    'order'  => 'ASC',
    'hide_empty' => 1,
    'meta_key' => $custome_term->slug,
    'tax_query' => array(
        array(
            'taxonomy' => 'instruction_categories',
            'field' => 'slug',
            'terms' => $custom_term->slug,
            'hide_empty' => 1,
            'orderby' => 'order',
            //  'order' => 'DESC',
        ),
    ),
 );


 $loop = new WP_Query($args);
 if($loop->have_posts()) {

 while($loop->have_posts()) : $loop->the_post();

Then enter whatever code you need to show for parts of your post content, and then don’t forget to close the whole thing out with:


    endwhile; 
    }
}