[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> query-text-grid.php (source)

   1  <?php
   2  /**
   3   * Text-based grid of posts block pattern
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Twenty_Two
   7   * @since Twenty Twenty-Two 1.0
   8   */
   9  
  10  return array(
  11      'title'      => __( 'Text-based grid of posts', 'twentytwentytwo' ),
  12      'categories' => array( 'query' ),
  13      'blockTypes' => array( 'core/query' ),
  14      '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}} -->
  15                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  16  
  17                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
  18  
  19                      <!-- wp:post-excerpt /-->
  20  
  21                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
  22                      <!-- /wp:post-template -->
  23  
  24                      <!-- wp:separator {"align":"wide","className":"is-style-wide"} -->
  25                      <hr class="wp-block-separator alignwide is-style-wide"/>
  26                      <!-- /wp:separator -->
  27  
  28                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  29                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  30  
  31                      <!-- wp:query-pagination-numbers /-->
  32  
  33                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  34                      <!-- /wp:query-pagination --></div>
  35                      <!-- /wp:query -->',
  36  );


Generated : Sat Aug 8 08:20:21 2026 Cross-referenced by PHPXref