two-featured-posts.php 778 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Two posts with features images in a query block.
  4. *
  5. * @package Geologist
  6. */
  7. return array(
  8. 'title' => __( 'Two featured posts', 'geologist' ),
  9. 'categories' => array( 'geologist' ),
  10. 'blockTypes' => array( 'core/query' ),
  11. 'content' => '<!-- wp:query {"query":{"perPage":2,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":2}} -->
  12. <div class="wp-block-query"><!-- wp:post-template -->
  13. <!-- wp:post-featured-image {"isLink":true} /-->
  14. <!-- wp:post-title {"isLink":true} /-->
  15. <!-- wp:post-excerpt /-->
  16. <!-- wp:post-date /-->
  17. <!-- /wp:post-template --></div>
  18. <!-- /wp:query -->',
  19. );