From: Laury GvR Date: Wed, 6 Feb 2019 00:52:17 +0000 (-0500) Subject: More debug messages for checking county id X-Git-Tag: v1.0.0^2~108^2~24 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=388882c5f55a9d52b3b0ee23ed252ecacee7bd8c;p=WP-Themes%2Fuptravel.git More debug messages for checking county id --- diff --git a/sections/interior-page.php b/sections/interior-page.php index bf4997f..0d9c339 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -67,9 +67,11 @@ if ( get_field( 'member_county_id' ) ) { $debugMsg[] = "using count page id"; $memberCountyId = get_field( 'member_county_id' ); - } else if ( get_field( 'member_county_id', wp_get_post_parent_id() ) ) { + } 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() ); + $memberCountyId = get_field( 'member_county_id', wp_get_post_parent_id( $post ) ); + } else { + $debugMsg[] = "no county page id?"; } } ?> @@ -82,9 +84,10 @@ // - 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; ?> +
ID); ?>