From 544d31a478f437727dbc9176365ec110a6e2f2c1 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Sun, 19 Feb 2017 17:57:40 +0100 Subject: [PATCH] Add all locations to array --- page-stats.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/page-stats.php b/page-stats.php index ccc9a09..6c054c9 100644 --- a/page-stats.php +++ b/page-stats.php @@ -60,11 +60,16 @@ ID; + $places = get_field('orte'); + if($places){ + foreach ($places as $place){ + $locations[] = array("post" => $post->ID, "place" => $place); + } + } endwhile; - var_dump($postIDs); + var_dump($locations); ?>