Get all results for the query
This commit is contained in:
parent
76e513bc89
commit
fdfdfcb135
1 changed files with 4 additions and 1 deletions
|
|
@ -27,7 +27,10 @@ function atravelblog_related_posts() {
|
||||||
$thisID = get_the_ID();
|
$thisID = get_the_ID();
|
||||||
$cat = get_the_category()[0]->name;
|
$cat = get_the_category()[0]->name;
|
||||||
if ( $cat == 'Urlaub' ){
|
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()) :
|
if ($tagebuch->have_posts()) :
|
||||||
echo('<div class="related-posts posts section-inner">');
|
echo('<div class="related-posts posts section-inner">');
|
||||||
echo('<h4 style="color: white; margin-top: 20px;">Tagebuch Einträge:</h4>');
|
echo('<h4 style="color: white; margin-top: 20px;">Tagebuch Einträge:</h4>');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue