?AlkantarClanX12
| Current Path : /home/r/a/n/rankinh/villavanille/wp-content/themes/villa-vanille/inc/blog/templates/parts/ |
| Current File : /home/r/a/n/rankinh/villavanille/wp-content/themes/villa-vanille/inc/blog/templates/parts/loop.php |
<?php
// Hook to include additional content before blog post item
do_action( 'drew_action_before_blog_post_item' );
if ( have_posts() ) {
while ( have_posts() ) :
the_post();
// Include post item
if ( is_single() ) {
echo apply_filters( 'drew_filter_blog_single_template', drew_get_template_part( 'blog', 'templates/parts/single/post', get_post_format() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
} else {
echo apply_filters( 'drew_filter_blog_list_post_template', drew_get_template_part( 'blog', 'templates/parts/list/post', get_post_format() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
endwhile; // End of the loop.
} else {
// Include global posts not found
drew_template_part( 'content', 'templates/parts/posts-not-found' );
}
// Hook to include additional content after blog post item
do_action( 'drew_action_after_blog_post_item' );
wp_reset_postdata();