Show Urlaub for Tour
This commit is contained in:
parent
43347a763b
commit
51b87dd6bb
1 changed files with 12 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue