From 2619b450b590dce084fe642c8085e39ecb4aaf98 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Sun, 19 Feb 2017 18:06:47 +0100 Subject: [PATCH] Add locations to map --- page-stats.php | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/page-stats.php b/page-stats.php index 6c054c9..93a544b 100644 --- a/page-stats.php +++ b/page-stats.php @@ -41,6 +41,10 @@

', '

'); ?> + +
+
+
@@ -65,12 +69,39 @@ $places = get_field('orte'); if($places){ foreach ($places as $place){ - $locations[] = array("post" => $post->ID, "place" => $place); + $locations[] = array_merge(array("post" => $post->ID), $place); } } endwhile; var_dump($locations); ?> + + \ No newline at end of file