The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[Plugin: comments] No Author Comment URL (1 post)

  1. revivalgraphics
    Posted 4 years ago #

    Hi, I was wondering if there was a code to prevent the author link from rediercting to the post, if they haven't entered a URL in the comment field?

    Here's the code I'm using:

    <p>By <a href="<?php comment_author_url(); ?>" class="author">
    			<?php comment_author(); ?>

    I'm hoping that if they don't have an author URL, it could not link to anything? Any help is appreciated.


Topic Closed

This topic has been closed to new replies.

About this Topic