adding ordering by slugs for the levels
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 20 Nov 2017 17:52:05 +0000 (12:52 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 20 Nov 2017 17:52:05 +0000 (12:52 -0500)
using the slug which is numerical to order the levels by

setup/donation-utils.php

index 9ecf7e7..6399c79 100644 (file)
@@ -6,6 +6,7 @@
             $levels = get_terms([
                 'taxonomy' => $taxonomy,
                 'hide_empty' => false,
+                'orderby'  => 'slug',
             ]);
             foreach($levels as $level){
 //                 echo '<pre>', print_r($level), '</pre>';