Change acf field name
authorLaury GvR <laury@gaslightmedia.com>
Wed, 6 Feb 2019 00:34:25 +0000 (19:34 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 6 Feb 2019 00:34:25 +0000 (19:34 -0500)
sections/interior-page.php

index 488f86a..bf4997f 100644 (file)
         
         <?php 
             if ( $countyPageId && function_exists("get_field") ) {
-                if ( get_field( 'county_member_category_id' ) ) {
+                if ( get_field( 'member_county_id' ) ) {
                     $debugMsg[] = "using count page id";
-                    $memberCountyId = get_field( 'county_member_category_id' );
-                } else if ( get_field( 'county_member_category_id', wp_get_post_parent_id() ) ) {
+                    $memberCountyId = get_field( 'member_county_id' );
+                } else if ( get_field( 'member_county_id', wp_get_post_parent_id() ) ) {
                     $debugMsg[] = "using county page id of parent";
-                    $memberCountyId = get_field( 'county_member_category_id', wp_get_post_parent_id() );
+                    $memberCountyId = get_field( 'member_county_id', wp_get_post_parent_id() );
                 }
             }
         ?>