[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Default 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'      => __( 'Default posts', 'twentytwentytwo' ),
  12      'categories' => array( 'query' ),
  13      'blockTypes' => array( 'core/query' ),
  14      'content'    => '<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":""},"align":"wide","layout":{"inherit":true}} -->
  15                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  16                      <!-- wp:group {"layout":{"inherit":true}} -->
  17                      <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"align":"wide","fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))"} /-->
  18  
  19                      <!-- wp:post-featured-image {"isLink":true,"align":"wide","style":{"spacing":{"margin":{"top":"calc(1.75 * var(--wp--style--block-gap))"}}}} /-->
  20  
  21                      <!-- wp:columns {"align":"wide"} -->
  22                      <div class="wp-block-columns alignwide"><!-- wp:column {"width":"650px"} -->
  23                      <div class="wp-block-column" style="flex-basis:650px"><!-- wp:post-excerpt /-->
  24  
  25                      <!-- wp:post-date {"isLink":true,"format":"F j, Y","style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div>
  26                      <!-- /wp:column -->
  27  
  28                      <!-- wp:column {"width":""} -->
  29                      <div class="wp-block-column"></div>
  30                      <!-- /wp:column --></div>
  31                      <!-- /wp:columns -->
  32  
  33                      <!-- wp:spacer {"height":16} -->
  34                      <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  35                      <!-- /wp:spacer -->
  36  
  37                      <!-- wp:separator {"align":"wide","className":"is-style-wide"} -->
  38                      <hr class="wp-block-separator alignwide is-style-wide"/>
  39                      <!-- /wp:separator -->
  40  
  41                      <!-- wp:spacer {"height":16} -->
  42                      <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  43                      <!-- /wp:spacer --></div>
  44                      <!-- /wp:group -->
  45                      <!-- /wp:post-template -->
  46  
  47                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  48                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  49  
  50                      <!-- wp:query-pagination-numbers /-->
  51  
  52                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  53                      <!-- /wp:query-pagination --></div>
  54                      <!-- /wp:query -->',
  55  );


Generated : Sat Aug 1 08:20:18 2026 Cross-referenced by PHPXref