From: Laury GvR Date: Mon, 7 Aug 2017 16:33:33 +0000 (-0400) Subject: Related products no longer to be shown on Download products X-Git-Tag: v1.0.0^2~27 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=8baf205bb781ac189c925c9354327831c362928a;p=WP-Themes%2Fmichigantrailmaps.git Related products no longer to be shown on Download products --- diff --git a/functions.php b/functions.php index ec178a7..e066afd 100644 --- a/functions.php +++ b/functions.php @@ -365,13 +365,13 @@ add_filter('member_list_header_search', function(){ $regions = get_categories_array( apply_filters('glm_getListForSearch', 'region'), 'region'); $cities = get_categories_array( apply_filters('glm_getListForSearch', 'city'), 'city'); $counties = get_categories_array( apply_filters('glm_getListForSearch', 'county'), 'county'); - + uasort($counties, function ($item1, $item2) { if ($item1['name'] == $item2['name']) return 0; return $item1['name'] < $item2['name'] ? -1 : 1; }); - + $parks = get_categories_array( apply_filters('glm_getListForSearch','category', "Parks"), 'category'); $activities = get_categories_array( apply_filters('glm_getListForSearch','category', "Activities"), 'category'); $destinations = get_categories_array( apply_filters('glm_getListForSearch','category', "Destinations"), 'category');