Change related blog section
This commit is contained in:
parent
cb567117fe
commit
b27fecc534
3 changed files with 203 additions and 50 deletions
17
single.php
17
single.php
|
|
@ -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: ?>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue