[ Index ]

PHP Cross Reference of WordPress

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 1.0.0
   8   */
   9  
  10  if ( (bool) get_the_author_meta( 'description' ) ) : ?>
  11  <div class="author-bio">
  12      <h2 class="author-title">
  13          <span class="author-heading">
  14              <?php
  15              printf(
  16                  /* translators: %s: Post author. */
  17                  __( 'Published by %s', 'twentynineteen' ),
  18                  esc_html( get_the_author() )
  19              );
  20              ?>
  21          </span>
  22      </h2>
  23      <p class="author-description">
  24          <?php the_author_meta( 'description' ); ?>
  25          <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  26              <?php _e( 'View more posts', 'twentynineteen' ); ?>
  27          </a>
  28      </p><!-- .author-description -->
  29  </div><!-- .author-bio -->
  30  <?php endif; ?>


Generated: Sat Dec 7 01:00:03 2019 Cross-referenced by PHPXref 0.7.1