Add anreise and abreise to locations array

This commit is contained in:
Markus Ankenbrand 2017-02-25 09:22:03 +01:00
parent b48890edd8
commit d110071d4d

View file

@ -80,7 +80,13 @@
if($places){
$traveler = array_unique(array_merge($traveler, get_field('mitreisende')));
foreach ($places as $place){
$locations[] = array_merge(array("post" => $post->ID, "title" => $post->post_title, "traveler" => get_field('mitreisende')), $place);
$locations[] = array_merge(array(
"post" => $post->ID,
"title" => $post->post_title,
"traveler" => get_field('mitreisende'),
"start" => get_field('anreise'),
"end" => get_field('abreise')
), $place);
}
}
endwhile;