Title: comment_author_link
Last modified: August 18, 2016

---

# comment_author_link

 *  [marmelade](https://wordpress.org/support/users/marmelade/)
 * (@marmelade)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/comment_author_link/)
 * How do I make links popup in a new window? I’m using; comment_author_link, and
   can’t find a place to put “target=_blank” anywhere.

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/comment_author_link/#post-157627)
 * Try something like this:
 * `<a target="_blank" href="<?php comment_author_url(); ?>"><?php comment_author();?
   ></a>`
 * For more robust handling:
 * `<?php if(!get_comment_author_url()) : ?>
    <?php comment_author(); ?> <?php else:?
   > <a href="<?php comment_author_url(); ?>" target="_blank"><?php comment_author();?
   ></a> <?php endif; ?>
 *  Thread Starter [marmelade](https://wordpress.org/support/users/marmelade/)
 * (@marmelade)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/comment_author_link/#post-157629)
 * Thank you! =)

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

The topic ‘comment_author_link’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [marmelade](https://wordpress.org/support/users/marmelade/)
 * Last activity: [21 years, 3 months ago](https://wordpress.org/support/topic/comment_author_link/#post-157629)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
