[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Title: Archive Compact
   4   * Slug: ipsum/archive-compact
   5   * Categories: posts
   6   * Block Types: core/query
   7   * Viewport width: 1280
   8   * Description: Title, meta, and an excerpt — the Standard listing without images.
   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 Compact', 'Name of the Archive Compact query', 'ipsum' ); ?>"},"layout":{"type":"default"}} -->
  16  <div class="wp-block-query"><!-- wp:post-template {"className":"hover-together","style":{"spacing":{"blockGap":"var:preset|spacing|60"}},"layout":{"type":"default"}} -->
  17  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Wrapper', 'Name of the group wrapping each post in a list', 'ipsum' ); ?>"},"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"},"padding":{"bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
  18  <div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Title', 'Name of the group holding the post title', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"constrained"}} -->
  19  <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"fontSize":"2-x-large"} /-->
  20  
  21  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Date and Categories', 'Name of the group holding the post date and categories', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
  22  <div class="wp-block-group"><!-- wp:post-date {"isLink":true} /-->
  23  
  24  <!-- wp:paragraph {"metadata":{"name":"·"},"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}},"fontSize":"small"} -->
  25  <p class="has-small-font-size" style="font-style:normal;font-weight:600"><?php esc_html_e( '·', 'ipsum' ); ?></p>
  26  <!-- /wp:paragraph -->
  27  
  28  <!-- wp:post-terms {"term":"category"} /--></div>
  29  <!-- /wp:group --></div>
  30  <!-- /wp:group -->
  31  
  32  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Post Template Copy', 'Name of the group holding the post excerpt and read more link', 'ipsum' ); ?>"},"layout":{"type":"constrained","justifyContent":"left"}} -->
  33  <div class="wp-block-group"><!-- wp:post-excerpt {"showMoreOnNewLine":false} /-->
  34  
  35  <!-- wp:read-more {"content":"<?php esc_attr_e( 'Read more ›', 'ipsum' ); ?>"} /--></div>
  36  <!-- /wp:group --></div>
  37  <!-- /wp:group -->
  38  <!-- /wp:post-template -->
  39  
  40  <!-- 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"}} -->
  41  <div class="wp-block-group"><!-- wp:query-no-results -->
  42  <!-- wp:paragraph -->
  43  <p><?php esc_html_e( 'No posts have been published in this section yet.', 'ipsum' ); ?></p>
  44  <!-- /wp:paragraph -->
  45  <!-- /wp:query-no-results --></div>
  46  <!-- /wp:group -->
  47  
  48  <!-- 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"}} -->
  49  <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"}} -->
  50  <!-- wp:query-pagination-previous /-->
  51  
  52  <!-- wp:query-pagination-next /-->
  53  <!-- /wp:query-pagination --></div>
  54  <!-- /wp:group --></div>
  55  <!-- /wp:query -->


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