• Resolved colindunn

    (@colindunn)


    Hello everyone,

    I am guessing this is a pretty easy problem to solve, but being new to the wordpress game I am having a little trouble with it.

    What I want to have happen is when a commenter provides a URL, a link appears in the comment to the author’s website. That’s the easy part. The problem is that even if the commenter doesn’t provide a URL, the link text appears, linking to “#” and providing no distinction between the commenters with websites and those without. Here is the code I am currently using:

    <?php comment_author_url_link(‘My Awesome Website’); ?>

    According to the documentation, this “Displays the comment author’s URL (usually their web site), linked,if one was provided…” However it seems to instead be providing a link no matter if a URL exists or not.

    Does anyone have a fix for this?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide Comment Autor URL link when none exists’ is closed to new replies.