Use numeric category references instead of slugs
authorLaury GvR <laury@gaslightmedia.com>
Wed, 6 Feb 2019 00:59:05 +0000 (19:59 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 6 Feb 2019 00:59:05 +0000 (19:59 -0500)
sections/interior-page.php

index 0d9c339..ea77553 100644 (file)
         <?php if ( $isCountyChildPage ) {
             if(strpos($countyChildren[$post->ID], 'Water') !== false ){
                 $debugMsg[] = "I'm a waterfall page";
-                $memberCategory = 'waterfalls';
+                $memberCategory = '25'; // L: 3, dev70: 25
             } else if(strpos($countyChildren[$post->ID], 'Light') !== false ){
                 $debugMsg[] = "I'm a lighthouse page";
-                $memberCategory = 'lighthouses';
+                $memberCategory = '21'; // L: 4, ddev70: 21
             } else {
                 $debugMsg[] = "I'm neither waterfall nor a light house";
             }
@@ -95,8 +95,8 @@
     <?php } else if ( $isCountyChildPage && $memberCountyId) { ?>
         <div id="counties-map">
             <?php 
-                do_shortcode("[glm-members-list show='-list' category='". true ."' county-search='". $memberCountyId ."']");
-                echo "Map loads here ( county = $memberCountyId )";
+                do_shortcode("[glm-members-list show='-list' category='". $memberCategory ."' county-search='". $memberCountyId ."']");
+                echo "Map loads here ( county = $memberCountyId , memberCategory = $memberCategory )";
             ?>
         </div>
     <?php } else if (function_exists('the_field') && get_field('interior_header_crowdriff_script',$post->ID)) { ?>