I have a custom taxonomy set as a "splash" on my front page, I would like to only display the latest one of these taxonomies as a splash, and any older ones to be returned to the loop and displayed as normal.
My code atm below displays the splash fine, but reproduces the splash again in the loop for some reason:
$args = array(
'post_type' => 'post',
'posts_per_page' => '1',
'order_by' => 'date',
'order' => 'DESC',
'tax_query' => array(
array(
'taxonomy' => 'theme',
'field' => 'slug',
'terms' => array ('text-image', 'just-image', 'just-text')
)
)
);
$query = new WP_Query( $args );
if (have_posts()) :
while( $query->have_posts() ) :
$query->the_post();
Any help would be appreciated!