Possible problem with author-bio.php

  • Author
    Posts
  • #56782

    For author information the original author-bio.php code is

    <?php echo __( 'Author:', 'verbosa' ) . ' <strong' . cryout_schema_microdata( 'author-name', 0) . '>' . esc_attr( get_the_author() ) . '</strong>'; ?>

    I noticed that the HTML output of the esc_attr( get_the_author() ) is &lt span class='p-author h-card'&gt Khürt Williams&lt /span&gt

    When I remove the esc_attr() function call I get the expected output <span class='p-author h-card'>Khürt Williams</span>.

    Website: islandinthenet.com

    • This topic was modified 7 months, 3 weeks ago by  khurtwilliams.
    • This topic was modified 7 months, 3 weeks ago by  khurtwilliams.
    • This topic was modified 7 months, 3 weeks ago by  khurtwilliams.
    • This topic was modified 7 months, 3 weeks ago by  khurtwilliams.
    • This topic was modified 7 months, 3 weeks ago by  khurtwilliams.
    #56861

    Zed
    Cryout Creations Team

    You may have a plugin filtering that and returning HTML. According to the Codex, get_the_author() returns a simple string.


    If you like our creations, please rate them on WordPress.org.
    Please read the available documentation and search the forums before posting.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Possible problem with author-bio.php’ is closed to new replies.