Keine Beschreibung

query-grid.php 1.4KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Grid of posts block pattern
  4. */
  5. return array(
  6. 'title' => __( 'Grid of posts', 'twentytwentytwo' ),
  7. 'categories' => array( 'query' ),
  8. 'blockTypes' => array( 'core/query' ),
  9. 'content' => '<!-- wp:query {"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":12},"displayLayout":{"type":"flex","columns":3},"align":"wide","layout":{"inherit":true}} -->
  10. <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  11. <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
  12. <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
  13. <!-- wp:post-excerpt /-->
  14. <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
  15. <!-- /wp:post-template -->
  16. <!-- wp:separator {"align":"wide","className":"is-style-wide"} -->
  17. <hr class="wp-block-separator alignwide is-style-wide"/>
  18. <!-- /wp:separator -->
  19. <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  20. <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  21. <!-- wp:query-pagination-numbers /-->
  22. <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  23. <!-- /wp:query-pagination --></div>
  24. <!-- /wp:query -->',
  25. );