• When using comment_author in my theme like so:

    <?php comment_author(); ?>

    The result, is the name of the USER who created this comment, as opposed to the name entered when the comment was made in the “Name” field.

    To be more specific, the name I WANT to display is the one located in wp_comments with the field id “comment_author”. In my case, this is NOT the one displaying, which I thought was the entire purpose of this code.

    And I’ll give a little bit of information as to the situation, this might explain what is causing the problem. I have a site, comments are not open, but the owner of the site wants to add comments manually from the backend and then enter in different names to the “Name” (comment_author in the database) field. But that doesn’t do any good, since his name keeps displaying anyway.

    Theme is a modified twentytwelve running WordPress 3.6.1

  • The topic ‘comment_author Displaying User, not Entered Name’ is closed to new replies.