can you help me to add an else statement to this loop?
<?php
$post_type = 'post'; // <-- Post Type
$tax = 'temporada'; // <-- Taxonomía
$termino = get_terms($tax);
$category = get_the_category();
$cat_name = $category[0]->cat_ID;
if ($termino) {
foreach ($termino as $temporada) {
$args=array(
'post_type' => $post_type,
"$tax" => $temporada->slug,
'cat' => $cat_name,
'post_status' => 'publish',
'orderby' => 'meta_value',
'meta_query' => array( array('key' => 'numeroepisodio') ),
'hide_empty' => true,
'order' => ASC
);
$query_episodios = null;
$query_episodios = new WP_Query($args);
if( $query_episodios->have_posts() ) {
echo '<h3>title...</h3>';
while ($query_episodios->have_posts()) : $query_episodios->the_post();?>
<a href="<?php the_permalink() ?>"><li><strong>[...]</strong></a>
<?php endwhile; }
echo '</ul>';
wp_reset_query();
}
}
?>
Thanks!