Show author only for Tagebuch category

This commit is contained in:
Markus Ankenbrand 2016-09-12 22:27:24 +02:00
parent 4551d7be7b
commit ac6f97f1e2

View file

@ -35,8 +35,9 @@
<p class="post-date"><?php the_time(get_option('date_format')); ?></p>
<h1 class="post-title"><?php the_title(); ?></h1>
<p class="post-date">by <?php the_author(); ?></p>
<?php if(get_the_category()[0]->name == 'Tagebuch') : ?>
<p class="post-date">by <?php the_author(); ?></p>
<? endif; ?>
</div>