[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/ipsum/patterns/ -> archive-columns.php (source)

   1  <?php
   2  /**
   3   * Title: Archive Columns
   4   * Slug: ipsum/archive-columns
   5   * Categories: posts
   6   * Block Types: core/query
   7   * Viewport width: 1280
   8   * Description: Featured image beside title and meta in a responsive row — the image takes a fixed width on desktop and the full width on small screens.
   9   *
  10   * @package Ipsum
  11   * @since Ipsum 1.0
  12   */
  13  
  14  ?>
  15  <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[],"excludeCurrent":null},"metadata":{"categories":["posts"],"name":"<?php echo esc_html_x( 'Archive Columns', 'Name of the Archive Columns query', 'ipsum' ); ?>"},"align":"wide","layout":{"type":"default"}} -->
  16  <div class="wp-block-query alignwide"><!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|60"}},"layout":{"type":"constrained"}} -->
  17  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Media and Content', 'Name of the group holding the media and content', 'ipsum' ); ?>"},"style":{"@mobile":{"layout":{"orientation":"vertical","justifyContent":"stretch"}},"@tablet":{"layout":{"orientation":"vertical","justifyContent":"stretch"}},"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
  18  <div class="wp-block-group"><!-- wp:post-featured-image {"isLink":true,"aspectRatio":"4/3","sizeSlug":"large","style":{"@mobile":{"layout":{"selfStretch":"fit"}},"@tablet":{"layout":{"selfStretch":"fit"}},"layout":{"selfStretch":"fixedNoShrink","flexSize":"300px"}}} /-->
  19  
  20  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Title and Meta', 'Name of the group holding the post title and meta', 'ipsum' ); ?>"},"style":{"layout":{"selfStretch":"fill"},"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"flex","orientation":"vertical"}} -->
  21  <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
  22  
  23  <!-- wp:post-date {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"}}} /--></div>
  24  <!-- /wp:group --></div>
  25  <!-- /wp:group -->
  26  <!-- /wp:post-template -->
  27  
  28  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'No Results Wrapper', 'Name of the group shown when a query has no results', 'ipsum' ); ?>"},"layout":{"type":"constrained"}} -->
  29  <div class="wp-block-group"><!-- wp:query-no-results -->
  30  <!-- wp:paragraph -->
  31  <p><?php esc_html_e( 'No posts have been published in this section yet.', 'ipsum' ); ?></p>
  32  <!-- /wp:paragraph -->
  33  <!-- /wp:query-no-results --></div>
  34  <!-- /wp:group -->
  35  
  36  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Pagination Wrapper', 'Name of the group wrapping the pagination', 'ipsum' ); ?>"},"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
  37  <div class="wp-block-group alignwide" style="margin-top:var(--wp--preset--spacing--60)"><!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
  38  <!-- wp:query-pagination-previous /-->
  39  
  40  <!-- wp:query-pagination-next /-->
  41  <!-- /wp:query-pagination --></div>
  42  <!-- /wp:group --></div>
  43  <!-- /wp:query -->


Generated : Thu Oct 22 08:20:34 2026 Cross-referenced by PHPXref