0
Мой код:WordPress страница архива "нет сообщений" addion
<?php
$today = date('d/m/Y');
$the_query = new WP_Query(array('post_type' => 'show', 'meta_key' => 'date', 'meta_value' => ''.$today.''));
// The Loop
while ($the_query->have_posts()) : $the_query->the_post();
require('post.php');
endwhile;
// Reset Post Data
wp_reset_postdata();
?>
Как я могу добавить "Там нет сообщения", когда есть сообщения = 0?
Спасибо за помощь! –