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;