WordPress.org

Ready to get started?Download WordPress

Forums

comments
No Author Comment URL (1 post)

  1. revivalgraphics
    Member
    Posted 1 year 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(); ?>
    			</a></p>

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

    http://wordpress.org/extend/plugins/comments/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags