author-bio.php 753 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * The template for displaying Author info
  4. *
  5. * @package WordPress
  6. * @subpackage Seedlet
  7. * @since 1.0.0
  8. */
  9. if ( (bool) get_the_author_meta( 'description' ) ) : ?>
  10. <div class="author-bio">
  11. <?php
  12. _e(__( 'Published by', 'seedlet' ));
  13. ?>
  14. <h2 class="author-title">
  15. <span class="author-heading">
  16. <?php
  17. printf(
  18. /* post author */
  19. esc_html( get_the_author() )
  20. );
  21. ?>
  22. </span>
  23. </h2>
  24. <p class="author-description">
  25. <?php the_author_meta( 'description' ); ?></br>
  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', 'seedlet' ); ?>
  28. </a>
  29. </p><!-- .author-description -->
  30. </div><!-- .author-bio -->
  31. <?php endif; ?>