templates/theme-support/understrap/content-alnp.php
<?php
/**
* The repeater template for displaying a post when called for Understrap.
*
* @author Sébastien Dumont
* @package Auto Load Next Post/Templates/Theme Support
* @license GPL-2.0+
* @version 1.6.0
*/
if ( have_posts() ) :
// Load content before the loop.
do_action( 'alnp_load_before_loop' );
// Check that there are posts to load.
while ( have_posts() ) : the_post();
// Load content before the post content.
do_action( 'alnp_load_before_content' );
// Load 'loop-templates/content-single.php'
get_template_part( alnp_template_location() . 'content', 'single' );
// Load content after the post content.
do_action( 'alnp_load_after_content' );
// End the loop.
endwhile;
// Load content after the loop.
do_action( 'alnp_load_after_loop' );
else :
// Load content if there are no more posts.
do_action( 'alnp_no_more_posts' );
endif; // END if have_posts()