Remove wrong condition

This commit is contained in:
Markus Ankenbrand 2016-09-12 12:52:08 +02:00
parent d19d736843
commit 4e0a3220cc

View file

@ -30,6 +30,7 @@ function atravelblog_related_posts() {
if ( $cat == 'Urlaub' ){
$tagebuch = new WP_Query( array( 'category_name' => 'Tagebuch' ) );
if ($tagebuch->have_posts()) :
echo('<h4>Tagebuch Einträge:</h4>');
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;
}