From: Steve Sutton Date: Mon, 3 Oct 2016 19:34:56 +0000 (-0400) Subject: Update member category list in shortcode builder. X-Git-Tag: v2.6.2^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=268268b134bb972eed5057881159cdd2e0f8ec95;p=WP-Plugins%2Fglm-member-db.git Update member category list in shortcode builder. Alpha order for member categories. --- diff --git a/models/admin/pages/shortcode.php b/models/admin/pages/shortcode.php index 563bdd80..06a09eb2 100644 --- a/models/admin/pages/shortcode.php +++ b/models/admin/pages/shortcode.php @@ -145,7 +145,7 @@ class GlmMembersAdmin_pages_shortcode $listAttr = $this->config['addOns']['glm-member-db']['shortcodes']['glm-members-list']['attributes']; $detailAttr = $this->config['addOns']['glm-member-db']['shortcodes']['glm-member-detail']['attributes']; $glmcat = new GlmDataCategories( $this->wpdb, $this->config ); - $categories = $glmcat->getListSortedParentChild(); + $categories = $glmcat->getList('', 'T.name'); // get the each addOn slugs to pass to the config array later $addOns = $this->config['addOns']; diff --git a/views/admin/pages/shortcode.html b/views/admin/pages/shortcode.html index e78221dc..91931cfb 100644 --- a/views/admin/pages/shortcode.html +++ b/views/admin/pages/shortcode.html @@ -9,11 +9,7 @@