From 8baf205bb781ac189c925c9354327831c362928a Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 7 Aug 2017 12:33:33 -0400 Subject: [PATCH] Related products no longer to be shown on Download products --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.17.1