Only show posts of category Urlaub on start page

This commit is contained in:
Markus Ankenbrand 2016-09-12 13:46:19 +02:00
parent cd870723e0
commit 7723b1e09e

View file

@ -25,8 +25,9 @@
<div class="posts" id="posts">
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php if(get_the_category()[0]->name == "Urlaub") :
get_template_part( 'content', get_post_format() );
endif; ?>
<?php endwhile; ?>