diff --git a/functions.php b/functions.php index d79e049..37428dd 100644 --- a/functions.php +++ b/functions.php @@ -30,6 +30,7 @@ function atravelblog_related_posts() { if ( $cat == 'Urlaub' ){ $tagebuch = new WP_Query( array( 'category_name' => 'Tagebuch' ) ); if ($tagebuch->have_posts()) : + echo('

Tagebuch Einträge:

'); while ( $tagebuch->have_posts() ) : $tagebuch->the_post(); global $post; if($thisID == get_field('urlaub')->ID){ @@ -42,9 +43,7 @@ function atravelblog_related_posts() { 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() ); - } + get_template_part( 'content', get_post_format() ); endwhile; endif; }