[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfour/patterns/ -> posts-1-col.php (source)

   1  <?php
   2  /**
   3   * Title: List of posts, 1 column
   4   * Slug: twentytwentyfour/posts-1-col
   5   * Categories: query
   6   * Block Types: core/query
   7   * Description: A list of posts, 1 column.
   8   *
   9   * @package WordPress
  10   * @subpackage Twenty_Twenty_Four
  11   * @since Twenty Twenty-Four 1.0
  12   */
  13  
  14  ?>
  15  
  16  <!-- wp:query {"query":{"perPage":3,"pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"type":"constrained"}} -->
  17  <div class="wp-block-query">
  18      <!-- wp:query-no-results -->
  19      <!-- wp:pattern {"slug":"twentytwentyfour/hidden-no-results"} /-->
  20      <!-- /wp:query-no-results -->
  21  
  22      <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"0","right":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
  23      <div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:0;padding-bottom:var(--wp--preset--spacing--50);padding-left:0">
  24          <!-- wp:post-template {"align":"full","style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"default","columnCount":3}} -->
  25          <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|20"}}}} /-->
  26          <!-- wp:group {"style":{"spacing":{"blockGap":"8px"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"nowrap"}} -->
  27          <div class="wp-block-group">
  28              <!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"bottom":"0"}}},"fontSize":"x-large"} /-->
  29              <!-- wp:template-part {"slug":"post-meta"} /-->
  30              <!-- wp:post-excerpt {"fontSize":"small"} /-->
  31              <!-- wp:spacer {"height":"var:preset|spacing|30"} -->
  32              <div style="height:var(--wp--preset--spacing--30)" aria-hidden="true" class="wp-block-spacer">
  33              </div>
  34              <!-- /wp:spacer -->
  35          </div>
  36          <!-- /wp:group -->
  37          <!-- /wp:post-template -->
  38          <!-- wp:spacer {"height":"var:preset|spacing|50","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}}} -->
  39          <div style="margin-top:0;margin-bottom:0;height:var(--wp--preset--spacing--50)" aria-hidden="true" class="wp-block-spacer"></div>
  40          <!-- /wp:spacer -->
  41          <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
  42          <!-- wp:query-pagination-previous /-->
  43          <!-- wp:query-pagination-next /-->
  44          <!-- /wp:query-pagination -->
  45  
  46      </div>
  47      <!-- /wp:group -->
  48  </div>
  49  <!-- /wp:query -->


Generated : Thu Jul 30 08:20:17 2026 Cross-referenced by PHPXref