Remove wrong condition
This commit is contained in:
parent
d19d736843
commit
4e0a3220cc
1 changed files with 2 additions and 3 deletions
|
|
@ -30,6 +30,7 @@ function atravelblog_related_posts() {
|
||||||
if ( $cat == 'Urlaub' ){
|
if ( $cat == 'Urlaub' ){
|
||||||
$tagebuch = new WP_Query( array( 'category_name' => 'Tagebuch' ) );
|
$tagebuch = new WP_Query( array( 'category_name' => 'Tagebuch' ) );
|
||||||
if ($tagebuch->have_posts()) :
|
if ($tagebuch->have_posts()) :
|
||||||
|
echo('<h4>Tagebuch Einträge:</h4>');
|
||||||
while ( $tagebuch->have_posts() ) : $tagebuch->the_post();
|
while ( $tagebuch->have_posts() ) : $tagebuch->the_post();
|
||||||
global $post;
|
global $post;
|
||||||
if($thisID == get_field('urlaub')->ID){
|
if($thisID == get_field('urlaub')->ID){
|
||||||
|
|
@ -42,9 +43,7 @@ function atravelblog_related_posts() {
|
||||||
if ($urlaub->have_posts()) :
|
if ($urlaub->have_posts()) :
|
||||||
while ( $urlaub->have_posts() ) : $urlaub->the_post();
|
while ( $urlaub->have_posts() ) : $urlaub->the_post();
|
||||||
global $post;
|
global $post;
|
||||||
if($thisID == get_field('urlaub')[0]){
|
get_template_part( 'content', get_post_format() );
|
||||||
get_template_part( 'content', get_post_format() );
|
|
||||||
}
|
|
||||||
endwhile;
|
endwhile;
|
||||||
endif;
|
endif;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue