Fix query to use p for id

This commit is contained in:
Markus Ankenbrand 2016-09-12 12:51:51 +02:00
parent 51b87dd6bb
commit d19d736843

View file

@ -38,7 +38,7 @@ function atravelblog_related_posts() {
endwhile; endwhile;
endif; endif;
} elseif($cat == 'Tour') { } 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()) : if ($urlaub->have_posts()) :
while ( $urlaub->have_posts() ) : $urlaub->the_post(); while ( $urlaub->have_posts() ) : $urlaub->the_post();
global $post; global $post;