Template Tags/comment author
Материал из WordPress Wiki
Содержание |
Description
Displays the comment author name; that is, the one supplied by the commenter. If no name is provided (and "User must fill out name and email" is not enabled under Discussion Options), WordPress will assign "Anonymous" as comment author. This tag must be within The Loop, or a comment loop.
Usage
%%% <?php comment_author(); ?> %%%
Example
<div>Comment by <?php comment_author(); ?>:</div>
Parameters
This tag has no parameters.