Wordpress - Custom Theme Development
Given this snippet in
What will be displayed if there are no posts?
index.php of a theme:<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h2><?php the_title(); ?></h2> <?php endwhile; else : ?> <p>No posts found.</p> <?php endif; ?>
What will be displayed if there are no posts?
