Title: Checking if empty comment_author_url() &#8230;
Last modified: August 19, 2016

---

# Checking if empty comment_author_url() …

 *  Resolved [Fatih Turan](https://wordpress.org/support/users/fatihturan/)
 * (@fatihturan)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/checking-if-empty-comment_author_url/)
 * Hello.
 * I want to check comment_author_url() function. If it’s empty i want to echo different
   output.
 * How i can do this?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Fatih Turan](https://wordpress.org/support/users/fatihturan/)
 * (@fatihturan)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/checking-if-empty-comment_author_url/#post-840983)
 * I solve it with `<?php if($comment->comment_author_url != "") { ?>` code snippet.

Viewing 1 replies (of 1 total)

The topic ‘Checking if empty comment_author_url() …’ is closed to new replies.

## Tags

 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [comment_author_url](https://wordpress.org/support/topic-tag/comment_author_url/)
 * [if](https://wordpress.org/support/topic-tag/if/)
 * [if else](https://wordpress.org/support/topic-tag/if-else/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Fatih Turan](https://wordpress.org/support/users/fatihturan/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/checking-if-empty-comment_author_url/#post-840983)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
