From 3d10ddfa5dbbb7362e985c5350877013919f4923 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 20 Nov 2017 12:52:05 -0500 Subject: [PATCH] adding ordering by slugs for the levels using the slug which is numerical to order the levels by --- setup/donation-utils.php | 1 + 1 file changed, 1 insertion(+) 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), '
'; -- 2.17.1