• Hello. Is there a way to get the value of comment_author_email() for use in PHP and not to display it directly? The templating engine of WP seems not to have anything to get comment values in the code! Thanks for any pointers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • depends on when you want to get it.. right after the comment submission, there’s always this

    $_POST['email']

    Thread Starter erick_paper

    (@erick_paper)

    I want it for comment display in the SinglePost template file. While looping through all comments, I want to recognize the author of the post and show his comments in a separate CSS. So the $_POST variable doesn’t work.

    Any other ideas? Thanks!

    I want it for comment display in the SinglePost template file. While looping through all comments, I want to recognize the author of the post and show his comments in a separate CSS. So the $_POST variable doesn’t work.

    and thats already been done.

    http://wordpress.org/search/author+comments+css?forums=1

    As far as I can tell all of your related posts on here re: grabbing variables are covered elsewhere, if not multiple times. I recommend using the search, and reading over the codex. 🙂

    Same solution as mentioned here:

    http://wordpress.org/support/topic/155822#post-689848

    (Hint: get_comment_author_email())

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Retrieving comment_author_email() for PHP, not display’ is closed to new replies.