[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Displays the post header
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Twenty_One
   7   * @since Twenty Twenty-One 1.0
   8   */
   9  
  10  // Don't show the title if the post-format is `aside` or `status`.
  11  $post_format = get_post_format();
  12  if ( 'aside' === $post_format || 'status' === $post_format ) {
  13      return;
  14  }
  15  ?>
  16  
  17  <header class="entry-header">
  18      <?php
  19      the_title( sprintf( '<h2 class="entry-title default-max-width"><a href="%s">', esc_url( get_permalink() ) ), '</a></h2>' );
  20      twenty_twenty_one_post_thumbnail();
  21      ?>
  22  </header><!-- .entry-header -->


Generated: Thu Apr 25 01:00:03 2024 Cross-referenced by PHPXref 0.7.1