From 4e0a3220cc1667488d42ce68ec80d2243ecdfb31 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Mon, 12 Sep 2016 12:52:08 +0200 Subject: [PATCH] Remove wrong condition --- functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }