From: Laury GvR Date: Mon, 10 Apr 2017 18:57:20 +0000 (-0400) Subject: Made sure the brand always shows up first on the list X-Git-Tag: v1.0.0^2~78 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=aab9b2c495b59ef29f55bd45a5638a67d78b22b2;p=WP-Themes%2Fbrewbakers.git Made sure the brand always shows up first on the list The brand was possibly not the first to be found as all categories were looped through. --- diff --git a/glm-member-db/views/front/members/list.html b/glm-member-db/views/front/members/list.html index 51d904d..22ebc5c 100644 --- a/glm-member-db/views/front/members/list.html +++ b/glm-member-db/views/front/members/list.html @@ -234,14 +234,18 @@ {assign var="foundBrand" value=0} {assign var="foundClass" value=0} + {foreach $member.categories as $category} - {if $foundBrand == 0} {if $category.parent_name|substr:0 eq "Brands"} {$category.name} {assign var="foundBrand" value=1} {/if} {/if} + {/foreach} + + {foreach $member.categories as $category} + {if $foundClass == 0} {if $category.parent_name|substr:0 eq "Housing Classes"} {$category.name}