From 549c8afdf6def996005058f1a7b20c8e8bd809ad Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 5 Feb 2019 20:11:05 -0500 Subject: [PATCH] ECHO THE MEMBER LIST SHORTCODE --- sections/interior-page.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sections/interior-page.php b/sections/interior-page.php index ea77553..4c217cc 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -53,10 +53,10 @@ ID], 'Water') !== false ){ $debugMsg[] = "I'm a waterfall page"; - $memberCategory = '25'; // L: 3, dev70: 25 + $memberCategory = '3'; // L: 3, dev70: 25 } else if(strpos($countyChildren[$post->ID], 'Light') !== false ){ $debugMsg[] = "I'm a lighthouse page"; - $memberCategory = '21'; // L: 4, ddev70: 21 + $memberCategory = '4'; // L: 4, ddev70: 21 } else { $debugMsg[] = "I'm neither waterfall nor a light house"; } @@ -70,6 +70,7 @@ } else if ( get_field( 'member_county_id', wp_get_post_parent_id( $post ) ) ) { $debugMsg[] = "using county page id of parent"; $memberCountyId = get_field( 'member_county_id', wp_get_post_parent_id( $post ) ); + $debugMsg[] = "membercountyid var value: $memberCountyId"; } else { $debugMsg[] = "no county page id?"; } @@ -84,7 +85,7 @@ // - county sub page: member db map for that county from custom field // - any other page: crowdriff script from custom field if exists, // --- otherwise featured image if exists - $debugMsg[] = "Is county child:" . $isCountyChildPage . " memberCountyID: " . $countyPageId; + $debugMsg[] = "Is county child?" . ($isCountyChildPage ? 'true' : 'false') . " member county pageID: " . $countyPageId; ?> @@ -95,7 +96,7 @@
-- 2.17.1