Message on Category if empty

edited March 2016 in Blog
Hi

I want add the code in your template is correct?
 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

OUTPUT posts

 <?php endwhile; else: ?>
<p>Sorry, no posts matched.</p>
 <?php endif; ?>

Comments

Sign In or Register to comment.