[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Simple blog 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'      => __( 'Simple blog posts', 'twentytwentytwo' ),
  12      'categories' => array( 'query' ),
  13      'blockTypes' => array( 'core/query' ),
  14      'content'    => '<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"perPage":10},"layout":{"inherit":true}} -->
  15                      <div class="wp-block-query"><!-- wp:post-template -->
  16                      <!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"1rem","bottom":"1rem"}},"typography":{"fontStyle":"normal","fontWeight":"300"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary","fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))"} /-->
  17  
  18                      <!-- wp:post-featured-image {"isLink":true} /-->
  19  
  20                      <!-- wp:post-excerpt /-->
  21  
  22                      <!-- wp:group {"layout":{"type":"flex"}} -->
  23                      <div class="wp-block-group"><!-- wp:post-date {"format":"F j, Y","style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small"} /-->
  24  
  25                      <!-- wp:post-terms {"term":"category","fontSize":"small"} /-->
  26  
  27                      <!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /--></div>
  28                      <!-- /wp:group -->
  29  
  30                      <!-- wp:spacer {"height":128} -->
  31                      <div style="height:128px" aria-hidden="true" class="wp-block-spacer"></div>
  32                      <!-- /wp:spacer -->
  33                      <!-- /wp:post-template -->
  34  
  35                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  36                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  37  
  38                      <!-- wp:query-pagination-numbers /-->
  39  
  40                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  41                      <!-- /wp:query-pagination --></div>
  42                      <!-- /wp:query -->',
  43  );


Generated : Sat Aug 15 08:20:25 2026 Cross-referenced by PHPXref