[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentynineteen/template-parts/post/ -> author-bio.php (source)

   1  <?php
   2  /**
   3   * The template for displaying Author info
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Nineteen
   7   * @since Twenty Nineteen 1.0
   8   */
   9  
  10  if ( (bool) get_the_author_meta( 'description' ) ) :
  11      ?>
  12  <div class="author-bio">
  13      <h2 class="author-title">
  14          <span class="author-heading">
  15              <?php
  16              printf(
  17                  /* translators: %s: Post author. */
  18                  __( 'Published by %s', 'twentynineteen' ),
  19                  esc_html( get_the_author() )
  20              );
  21              ?>
  22          </span>
  23      </h2>
  24      <p class="author-description">
  25          <?php the_author_meta( 'description' ); ?>
  26          <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  27              <?php _e( 'View more posts', 'twentynineteen' ); ?>
  28          </a>
  29      </p><!-- .author-description -->
  30  </div><!-- .author-bio -->
  31      <?php
  32  endif;


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref