Possible problem with author-bio.php

  • Author
  • #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

    Cryout Creations mastermind

    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, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

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