posts-page.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Title: Posts Page
  4. * Slug: kentwood/posts-page
  5. * Categories: featured, posts
  6. */
  7. declare( strict_types = 1 );
  8. ?>
  9. <!-- wp:query {"query":{"perPage":8,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"align":"wide"} -->
  10. <div class="wp-block-query alignwide">
  11. <!-- wp:post-template {"layout":{"type":"grid","columnCount":4}} -->
  12. <!-- wp:group {"layout":{"type":"constrained"}} -->
  13. <div class="wp-block-group">
  14. <!-- wp:post-featured-image {"isLink":true} /-->
  15. <!-- wp:post-date {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"}}},"fontSize":"x-small"} /-->
  16. <!-- wp:post-title {"level":3,"isLink":true,"style":{"spacing":{"margin":{"top":"var:preset|spacing|30"}}},"fontSize":"medium"} /-->
  17. <!-- wp:post-excerpt {"moreText":"Read More","showMoreOnNewLine":false,"excerptLength":20,"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"}}},"fontSize":"small"} /-->
  18. </div>
  19. <!-- /wp:group -->
  20. <!-- /wp:post-template -->
  21. <!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
  22. <div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70)">
  23. <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
  24. <!-- wp:query-pagination-previous /-->
  25. <!-- wp:query-pagination-next /-->
  26. <!-- /wp:query-pagination -->
  27. </div>
  28. <!-- /wp:group -->
  29. </div>
  30. <!-- /wp:query -->