WordPress.org

Support

Support » How-To and Troubleshooting » If author_has_url

If author_has_url

  • Is there something like this, I’m trying to do what Josh is doing with comment author’s URLs, however when I setup my php up like so:

    {cite}{a href=”{?php comment_author_url(); ?}”}{?php comment_author(); ?}{span} : {?php comment_author_url(); ?}{/span}{/a}{/cite}

    It will make the author’s name linked even if they didn’t enter a URL for their site, instead it links to the page you are currently on. Any advice?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘If author_has_url’ is closed to new replies.