Add link to Urlaub from Album and Tagebuch

This commit is contained in:
Markus Ankenbrand 2016-09-12 13:39:32 +02:00
parent 63f784acf5
commit dbef8ebdcb

View file

@ -93,7 +93,7 @@ function atravelblog_related_posts() {
echo('</div> <!-- /related-posts -->');
endif;
wp_reset_query();
} elseif($cat == 'Tour') {
} elseif($cat == 'Tour' || $cat == 'Album' || $cat == 'Tagebuch') {
$urlaub = new WP_Query(array('p' => get_field('urlaub')[0]));
if ($urlaub->have_posts()) :
echo('<h4 style="color: white; margin-top: 20px;" class="section-inner">Urlaub:</h4>');