Show Urlaub for Tour

This commit is contained in:
Markus Ankenbrand 2016-09-12 12:35:03 +02:00
parent 43347a763b
commit 51b87dd6bb

View file

@ -37,11 +37,18 @@ function atravelblog_related_posts() {
}
endwhile;
endif;
echo('<div class="clear"></div>');
echo('</div> <!-- /related-posts -->');
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('<div class="clear"></div>');
echo('</div> <!-- /related-posts -->');
wp_reset_query();
}