Fix query to use p for id
This commit is contained in:
parent
51b87dd6bb
commit
d19d736843
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue