[Resolved] How to get the comment authors name.
What I’d like to do is get the comment authors name and be able to re-use it in PHP.
Here is a simple example:
<? $filenameauthor = comment_author(); echo "-".$filenameauthor."-"; ?>
Desired outcome: -Thomas-
Actual outcome: Thomas–
What’s happening the comment_author() is not returning a name, but rather running an function that doesn’t allow the comment author name to be associated with $filenameauthor.
Any ideas how I can get the desired outcome?
- The topic ‘[Resolved] How to get the comment authors name.’ is closed to new replies.