Get all results for the query

This commit is contained in:
Markus Ankenbrand 2016-09-12 12:59:53 +02:00
parent 76e513bc89
commit fdfdfcb135

View file

@ -27,7 +27,10 @@ function atravelblog_related_posts() {
$thisID = get_the_ID();
$cat = get_the_category()[0]->name;
if ( $cat == 'Urlaub' ){
$tagebuch = new WP_Query( array( 'category_name' => 'Tagebuch' ) );
$tagebuch = new WP_Query( array(
'category_name' => 'Tagebuch',
'posts_per_page' => -1
) );
if ($tagebuch->have_posts()) :
echo('<div class="related-posts posts section-inner">');
echo('<h4 style="color: white; margin-top: 20px;">Tagebuch Einträge:</h4>');