<!-- wp:group {"className":"wrapper inset-layout","layout":{"type":"default"}} -->
<div class="wp-block-group wrapper inset-layout">
<!-- wp:group {"className":"division","layout":{"type":"default"}} -->
<div class="wp-block-group division">
<!-- wp:template-part {"slug":"sidebar"} /-->
<!-- wp:group {"className":"main","layout":{"type":"default"}} -->
<div class="wp-block-group main">
<!-- wp:group {"className":"stack","layout":{"type":"default"}} -->
<div class="wp-block-group stack">
<!-- wp:group {"className":"primary-content","layout":{"type":"default"}} -->
<div class="wp-block-group primary-content">
<!-- wp:query -->
<!-- wp:post-title {"level":1,"isLink":true} /-->
<!-- wp:post-excerpt /-->
<!-- wp:query /-->
</div>
<!-- /wp:group -->
<!-- wp:eternaltwentyfifteen/post-footer /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
The above doesnt archive all post on front page, but just one latst posts; I thought block themes are well structured and templates/index.html WordPress will do all the heavy weight lifting, but that has not happened in this case.
What changes should I make to templates/index.html to populate all the posts? Should I hae Custom Query Loop in this — templates/index.html
<!-- wp:group {"className":"wrapper inset-layout","layout":{"type":"default"}} -->
<div class="wp-block-group wrapper inset-layout">
<!-- wp:group {"className":"division","layout":{"type":"default"}} -->
<div class="wp-block-group division">
<!-- wp:template-part {"slug":"sidebar"} /-->
<!-- wp:group {"className":"main","layout":{"type":"default"}} -->
<div class="wp-block-group main">
<!-- wp:group {"className":"stack","layout":{"type":"default"}} -->
<div class="wp-block-group stack">
<!-- wp:group {"className":"primary-content","layout":{"type":"default"}} -->
<div class="wp-block-group primary-content">
<!-- wp:query -->
<!-- wp:post-title {"level":1,"isLink":true} /-->
<!-- wp:post-excerpt /-->
<!-- wp:query /-->
</div>
<!-- /wp:group -->
<!-- wp:eternaltwentyfifteen/post-footer /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
The above doesnt archive all post on front page, but just one latst posts; I thought block themes are well structured and templates/index.html WordPress will do all the heavy weight lifting, but that has not happened in this case.
What changes should I make to templates/index.html to populate all the posts? Should I hae Custom Query Loop in this — templates/index.html
Share Improve this question asked Apr 14 at 9:51 WordCentWordCent 1,9646 gold badges34 silver badges60 bronze badges 2
<!-- wp:post-template
inside the query block markup. Note that block markup is intended to be generated in the editor, manual modifications can lead to issues like this as well as block validation errors – Tom J Nowell ♦ Commented Apr 14 at 12:54