diff --git a/functions.php b/functions.php index 5880961..7a9d095 100644 --- a/functions.php +++ b/functions.php @@ -37,11 +37,18 @@ function atravelblog_related_posts() { } endwhile; endif; - echo('
'); - echo(' '); - wp_reset_query(); } elseif($cat == 'Tour') { - var_dump(get_field('urlaub')); + $urlaub = new WP_Query(array('id' => get_field('urlaub')[0])); + if ($urlaub->have_posts()) : + while ( $urlaub->have_posts() ) : $urlaub->the_post(); + global $post; + if($thisID == get_field('urlaub')[0]){ + get_template_part( 'content', get_post_format() ); + } + endwhile; + endif; } - + echo(''); + echo(' '); + wp_reset_query(); } \ No newline at end of file