From: Laury GvR Date: Tue, 21 Aug 2018 20:27:07 +0000 (-0400) Subject: Fix location collection for frontpage map X-Git-Tag: v1.0.0^2~41 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=a2831757b2752a3983d27105c12fcb0ffa3fd048;p=WP-Themes%2Fvisitalpena2018.git Fix location collection for frontpage map --- diff --git a/parts/map-section.php b/parts/map-section.php index 9209bc1..ddf9f76 100644 --- a/parts/map-section.php +++ b/parts/map-section.php @@ -27,12 +27,13 @@ $locations = array(); foreach($pages as $page){ $args = array( - 'id' => $page, + 'post_id' => $page, 'post_type' => 'page', 'post_status' => 'publish', 'numberposts' => 1 ); $location_page = get_posts($args); + console.log($location_page); // echo '
', print_r($location_page), '
'; if( !empty($location_page) ){ $content = get_excerpt_by_id($location_page[0]->ID, 20);