projects
/
WP-Themes
/
visitalpena2018.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e684913
)
Fix location collection for frontpage map
author
Laury GvR
<laury@gaslightmedia.com>
Tue, 21 Aug 2018 20:27:07 +0000
(16:27 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Tue, 21 Aug 2018 20:27:07 +0000
(16:27 -0400)
parts/map-section.php
patch
|
blob
|
history
diff --git
a/parts/map-section.php
b/parts/map-section.php
index
9209bc1
..
ddf9f76
100644
(file)
--- 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 '<pre>', print_r($location_page), '</pre>';
if( !empty($location_page) ){
$content = get_excerpt_by_id($location_page[0]->ID, 20);