From d19d736843d9c4f09139d6370ed42a2e1eb6da89 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Mon, 12 Sep 2016 12:51:51 +0200 Subject: [PATCH] Fix query to use p for id --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 7a9d095..d79e049 100644 --- a/functions.php +++ b/functions.php @@ -38,7 +38,7 @@ function atravelblog_related_posts() { endwhile; endif; } elseif($cat == 'Tour') { - $urlaub = new WP_Query(array('id' => get_field('urlaub')[0])); + $urlaub = new WP_Query(array('p' => get_field('urlaub')[0])); if ($urlaub->have_posts()) : while ( $urlaub->have_posts() ) : $urlaub->the_post(); global $post;