Change related blog section

This commit is contained in:
Markus Ankenbrand 2016-09-11 16:28:51 +02:00
parent cb567117fe
commit b27fecc534
3 changed files with 203 additions and 50 deletions

View file

@ -89,20 +89,7 @@
</script>
</div>
<h2> Tagebucheinträge in diesem Urlaub: </h2>
<ul>
<?php
$tagebuch = get_posts(array(
'category_name' => 'Tagebuch'
));
foreach($tagebuch as $tb){
if(get_field('urlaub',$tb->ID)->ID === get_the_ID()){
echo('<li><a href="'.get_the_permalink($tb->ID).'" id="post-'.$tb->ID.'"> ');
echo(get_the_title($tb->ID).'</a></li>');
}
}
?>
</ul>
<?php endif; ?>
<?php
@ -176,7 +163,7 @@
</div> <!-- /content -->
<?php hitchcock_related_posts(); ?>
<?php atravelblog_related_posts(); ?>
<?php endwhile; else: ?>