From: Laury GvR Date: Mon, 10 Apr 2017 18:29:47 +0000 (-0400) Subject: Changed the member list members to show Year Brand Class as the name X-Git-Tag: v1.0.0^2~81 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e46754c2ea509f860ddeb93a961632445c1318f6;p=WP-Themes%2Fbrewbakers.git Changed the member list members to show Year Brand Class as the name The member list had to show the name as a combination of Year + Brand + Class. --- diff --git a/glm-member-db/views/front/members/list.html b/glm-member-db/views/front/members/list.html index 40ca279..3974c53 100644 --- a/glm-member-db/views/front/members/list.html +++ b/glm-member-db/views/front/members/list.html @@ -183,7 +183,17 @@

{if $settings.list_show_detail_link} - Year Brand Class {apply_filters('glm_custom_fields', 'year', $member.id)} + {apply_filters('glm_custom_fields', 'year', $member.id)} + + {foreach $member.categories as $category} + + {if $category.name|substr:0:21 eq "Housing Manufacturers"} + {$category.name|substr:23} + {/if} + {if $category.name|substr:0:15 eq "Housing Classes"} + {$category.name|substr:17} + {/if} + {/foreach} {else}