query.php 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Title: Query
  4. * Slug: fuf/query
  5. * Categories: posts
  6. * Block Types: core/post-conent, core/query, core/post-title
  7. *
  8. * @package fuf
  9. * @since 1.0.0
  10. */
  11. ?>
  12. <!-- wp:query {"query":{"perPage":5,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"type":"constrained"}} -->
  13. <div class="wp-block-query">
  14. <!-- wp:post-template -->
  15. <!-- wp:post-title {"level":2,"isLink":true} /-->
  16. <!-- wp:pattern {"slug":"fuf/hidden-post-meta"} /-->
  17. <!-- wp:post-excerpt {"moreText":"Read more"} /-->
  18. <!-- wp:spacer {"height":"1rem"} -->
  19. <div style="height:1rem" aria-hidden="true" class="wp-block-spacer"></div>
  20. <!-- /wp:spacer -->
  21. <!-- /wp:post-template -->
  22. <!-- wp:query-no-results -->
  23. <!-- wp:paragraph --><p><?php esc_html_e( 'No results found.', 'fuf'); ?></p><!-- /wp:paragraph -->
  24. <!-- /wp:query-no-results -->
  25. <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
  26. <!-- wp:query-pagination-previous /-->
  27. <!-- wp:query-pagination-next /-->
  28. <!-- /wp:query-pagination -->
  29. </div>
  30. <!-- /wp:query -->