';
//////////////////////
// Custom loop //
//////////////////////
$page_query = presscore_get_blog_query();
// start loop
if ( $page_query->have_posts() ): while( $page_query->have_posts() ): $page_query->the_post();
// global posts counter
$config->set( 'post.query.var.current_post', $page_query->current_post + 1 );
// populate config with current post settings
presscore_populate_post_config();
presscore_get_template_part( 'theme', 'blog/list/blog-list-post' );
endwhile; wp_reset_postdata(); endif;
echo '
';
/////////////////////
// Pagination //
/////////////////////
presscore_complex_pagination( $page_query );
// restore config
$config->reset( $config_backup );
}
do_action( 'presscore_after_loop' );
endwhile; endif; // main loop
?>