if (get_locale() == "en_US" ) { ?>
$args = array(
'post_type' => 'post',
'category_name' => 'english-latest-news',
'posts_per_page' => 1,
'post__in' => array(2027),
'facetwp' => true,
);
$query = new WP_Query( $args );
?>
if ( $query->have_posts() ) : while ( $query-> have_posts() ) : $query-> the_post(); ?>
endwhile; wp_reset_postdata(); // this should be inside if - there is no need to rested postdata if the_post hasn’t been called. endif; ?>
$args = array(
'post_type' => 'post',
'category_name' => 'english-latest-news',
'posts_per_page' => 13,
'post__not_in' => array( 2027, ),
'facetwp' => true,
);
$query = new WP_Query( $args );
?>
if ( $query->have_posts() ) : while ( $query-> have_posts() ) : $query-> the_post(); ?>
endwhile; wp_reset_postdata(); // this should be inside if - there is no need to rested postdata if the_post hasn’t been called. endif; ?>
} ?>
if (get_locale() == "es_ES" ) { ?>
$args = array(
'post_type' => 'post',
'category_name' => 'spanish-latest-news-section',
'posts_per_page' => 6,
'post__in' => array(2015),
'facetwp' => true,
);
$query = new WP_Query( $args );
?>
if ( $query->have_posts() ) : while ( $query-> have_posts() ) : $query-> the_post(); ?>
endwhile; wp_reset_postdata(); // this should be inside if - there is no need to rested postdata if the_post hasn’t been called. endif; ?>
$args = array(
'post_type' => 'post',
'category_name' => 'spanish-latest-news-section',
'posts_per_page' => 13,
'post__not_in' => array( 2015, ),
'facetwp' => true,
);
$query = new WP_Query( $args );
?>
if ( $query->have_posts() ) : while ( $query-> have_posts() ) : $query-> the_post(); ?>
endwhile; wp_reset_postdata(); // this should be inside if - there is no need to rested postdata if the_post hasn’t been called. endif; ?>
} ?>