WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get comment author url

Contents

Description

Returns the comment author's URL (usually their web site), not linked. This tag must be within The Loop, or a comment loop.

If the author provided no URL, this will return an empty string.

Usage

 <?php get_comment_author_url(); ?> 

Example

Returns the comment author's URL

<?php $comment_author = get_comment_author_url(); ?>

Parameters

This tag has no parameters.

Related

Comments Functions

See also index of Function Reference and index of Template Tags.