single.php Single Page WordPress Loop

single.php Single Page WordPress Loop

WordPress single.php Single Page WordPress simple Loop Snippet


<?php get_header();?>

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_title(); ?>
<?php the_content();?>

<?php endwhile; else : ?>
<p><?php esc_html_e( ‘Sorry, no posts matched your criteria.’ ); ?></p>
<?php endif; ?>

<?php get_footer();?>


blockquote