• Resolved superjux

    (@superjux)


    Hi.

    On my blog, commenters are required to enter their name and their email address, but not a url. If they leave the url field blank, their name still appears as a link, and it points to the post they are commenting on.

    Is it possible to make it so that if the url field is blank, their name does not show up as a link?

    Thanks!

    Hilary

Viewing 2 replies - 1 through 2 (of 2 total)
  • Here’s a mod of what I use in my theme’s comments.php (note that if your theme does not have a comments.php, it uses the one that comes with the default theme):

    <?php if(get_comment_author_url()) : ?>
    <a href="<?php comment_author_url(); ?>"><?php comment_author(); ?></a>
    <?php else :
    comment_author();
    endif; ?>

    Thread Starter superjux

    (@superjux)

    Cool, it worked!

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘commenter’s link’ is closed to new replies.