author-bio.php 832 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * The template for displaying Author info
  4. *
  5. * @package Seedlet
  6. */
  7. if ( (bool) get_the_author_meta( 'description' ) ) : ?>
  8. <div class="entry-author">
  9. <div class="author-heading">
  10. <h2 class="author-title">
  11. <?php esc_html_e( 'Published by', 'seedlet' ); ?>
  12. <span class="author-name">
  13. <?php
  14. printf(
  15. /* post author */
  16. esc_html( get_the_author() )
  17. );
  18. ?>
  19. </span><!-- .author-name -->
  20. </h2>
  21. </div><!-- .author-heading -->
  22. <p class="author-bio">
  23. <?php the_author_meta( 'description' ); ?>
  24. <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  25. <?php printf( esc_html__( 'View all posts by %s', 'seedlet' ), get_the_author() ); ?>
  26. </a>
  27. </p><!-- .author-bio -->
  28. </div><!-- .entry-author -->
  29. <?php endif; ?>