[ Index ]

PHP Cross Reference of WordPress

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 1.0.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 Sep 15 01:00:03 2019 Cross-referenced by PHPXref 0.7.1