From a2831757b2752a3983d27105c12fcb0ffa3fd048 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 21 Aug 2018 16:27:07 -0400 Subject: [PATCH] Fix location collection for frontpage map --- parts/map-section.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.17.1