query-short.php 1.0 KB

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Title: Query Short
  4. * Slug: gwp/query-short
  5. * Categories: posts
  6. * Block Types: core/post-content, core/query, core/post-title
  7. *
  8. * @package gwp
  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":false},"layout":{"type":"constrained"}} -->
  13. <div class="wp-block-query">
  14. <!-- wp:post-template -->
  15. <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","orientation":"horizontal"}} -->
  16. <div class="wp-block-group">
  17. <!-- wp:post-title {"level":2,"isLink":true,"style":{"typography":{"fontStyle":"normal","fontSize":"medium","fontWeight":"300"},"elements":{"link":{"color":{"text":"var:preset|color|tirtiary"}}}},"textColor":"tirtiary"} /-->
  18. <!-- wp:paragraph -->
  19. <span>&nbsp;-&nbsp;</span>
  20. <!-- wp:post-date {"format":"m/d/Y"} /-->
  21. <!-- /wp:paragraph -->
  22. </div>
  23. <!-- /wp:group -->
  24. <!-- /wp:post-template -->
  25. </div>
  26. <!-- /wp:query -->