[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentynineteen/template-parts/content/ -> content-excerpt.php (source)

   1  <?php
   2  /**
   3   * Template part for displaying post archives and search results
   4   *
   5   * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Nineteen
   9   * @since Twenty Nineteen 1.0
  10   */
  11  
  12  ?>
  13  
  14  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  15      <header class="entry-header">
  16          <?php
  17          if ( is_sticky() && is_home() && ! is_paged() ) {
  18              printf( '<span class="sticky-post">%s</span>', _x( 'Featured', 'post', 'twentynineteen' ) );
  19          }
  20          the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
  21          ?>
  22      </header><!-- .entry-header -->
  23  
  24      <?php twentynineteen_post_thumbnail(); ?>
  25  
  26      <div class="entry-content">
  27          <?php the_excerpt(); ?>
  28      </div><!-- .entry-content -->
  29  
  30      <footer class="entry-footer">
  31          <?php twentynineteen_entry_footer(); ?>
  32      </footer><!-- .entry-footer -->
  33  </article><!-- #post-<?php the_ID(); ?> -->


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref