# qi-blocks/1.0.7/inc/blocks/blog-list/templates/loop.php

Qi Blocks, version 1.0.7. 15 lines.

- Page: https://pluginprobe.com/plugins/qi-blocks/1.0.7/code/inc/blocks/blog-list/templates/loop.php
- Raw: https://pluginprobe.com/plugins/qi-blocks/1.0.7/raw/inc/blocks/blog-list/templates/loop.php
- Modified: 2022-12-23T11:22:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/qi-blocks/1.0.7/code/inc/blocks/blog-list/templates/loop.php#L10-L20`.

```php
<?php

if ( $query_result->have_posts() ) {
	while ( $query_result->have_posts() ) :
		$query_result->the_post();

		echo qi_blocks_get_block_list_template_part( 'blocks/blog-list', 'layouts/' . $layout, get_post_format(), $params );
	endwhile; // End of the loop.
} else {
	// Include global posts not found
	qi_blocks_template_part( 'blog', 'templates/parts/posts-not-found' );
}

wp_reset_postdata();

```
