<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
the_title() - выводит заголовок
the_time() - выводит время публикации записи
the_category() - выводит категорию записи
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p> - выводит текст если нет записей
<?php endif; ?>