From: Anthony Talarico Date: Mon, 20 Nov 2017 17:52:05 +0000 (-0500) Subject: adding ordering by slugs for the levels X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=3d10ddfa5dbbb7362e985c5350877013919f4923;p=WP-Plugins%2Fglm-donation-chart.git adding ordering by slugs for the levels using the slug which is numerical to order the levels by --- diff --git a/setup/donation-utils.php b/setup/donation-utils.php index 9ecf7e7..6399c79 100644 --- a/setup/donation-utils.php +++ b/setup/donation-utils.php @@ -6,6 +6,7 @@ $levels = get_terms([ 'taxonomy' => $taxonomy, 'hide_empty' => false, + 'orderby' => 'slug', ]); foreach($levels as $level){ // echo '
', print_r($level), '
';