[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Title: List of posts without images, 1 column
   4   * Slug: twentytwentyfour/posts-list
   5   * Categories: query, posts
   6   * Block Types: core/query
   7   * Description: A list of posts without images, 1 column.
   8   *
   9   * @package WordPress
  10   * @subpackage Twenty_Twenty_Four
  11   * @since Twenty Twenty-Four 1.0
  12   */
  13  
  14  ?>
  15  
  16  <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
  17  <div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)">
  18      <!-- wp:heading {"align":"wide","style":{"typography":{"lineHeight":"1"},"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|40"}}},"fontSize":"x-large"} -->
  19          <h2 class="wp-block-heading alignwide has-x-large-font-size" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--40);line-height:1"><?php esc_html_e( 'Watch, Read, Listen', 'twentytwentyfour' ); ?></h2>
  20      <!-- /wp:heading -->
  21  
  22      <!-- wp:group {"align":"wide","layout":{"type":"constrained"}} -->
  23      <div class="wp-block-group alignwide">
  24          <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"align":"wide","layout":{"type":"default"}} -->
  25          <div class="wp-block-query alignwide">
  26              <!-- wp:post-template -->
  27              <!-- wp:separator {"backgroundColor":"contrast-3","className":"alignwide is-style-wide"} -->
  28              <hr class="wp-block-separator has-text-color has-contrast-3-color has-alpha-channel-opacity has-contrast-3-background-color has-background alignwide is-style-wide" />
  29              <!-- /wp:separator -->
  30  
  31              <!-- wp:columns {"verticalAlignment":"center","align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|20","bottom":"var:preset|spacing|20"}}}} -->
  32              <div class="wp-block-columns alignwide are-vertically-aligned-center" style="margin-top:var(--wp--preset--spacing--20);margin-bottom:var(--wp--preset--spacing--20)">
  33                  <!-- wp:column {"verticalAlignment":"center","width":"72%"} -->
  34                  <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:72%">
  35                      <!-- wp:post-title {"isLink":true,"style":{"typography":{"lineHeight":"1.1","fontSize":"1.5rem"}}} /-->
  36                  </div>
  37                  <!-- /wp:column -->
  38  
  39                  <!-- wp:column {"verticalAlignment":"center","width":"28%"} -->
  40                  <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:28%">
  41                      <!-- wp:template-part {"slug":"post-meta"} /-->
  42                  </div>
  43                  <!-- /wp:column -->
  44              </div>
  45              <!-- /wp:columns -->
  46              <!-- /wp:post-template -->
  47  
  48              <!-- wp:spacer {"height":"var:preset|spacing|30"} -->
  49              <div style="height:var(--wp--preset--spacing--30)" aria-hidden="true" class="wp-block-spacer"></div>
  50              <!-- /wp:spacer -->
  51  
  52              <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
  53              <!-- wp:query-pagination-previous /-->
  54  
  55              <!-- wp:query-pagination-numbers /-->
  56  
  57              <!-- wp:query-pagination-next /-->
  58              <!-- /wp:query-pagination -->
  59  
  60              <!-- wp:query-no-results -->
  61              <!-- wp:pattern {"slug":"twentytwentyfour/hidden-no-results"} /-->
  62              <!-- /wp:query-no-results -->
  63          </div>
  64          <!-- /wp:query -->
  65      </div>
  66      <!-- /wp:group -->
  67  </div>
  68  <!-- /wp:group -->


Generated : Wed Aug 5 08:20:22 2026 Cross-referenced by PHPXref