Comment Author Link on Wordpress

Posted by knightrider on Stack Overflow See other posts from Stack Overflow or by knightrider
Published on 2010-04-30T04:11:53Z Indexed on 2010/04/30 4:17 UTC
Read the original article Hit count: 227

Filed under:
|

Hello,

At the wordpress form, when you leave comment as guest, there's a website field to fill your web address. If we fill in that box, we can get the link by calling this function

<?php echo get_comment_author_link(); ?>

But if you are logged in and you don't add the website at your profile, when you leave comment. It doesn't have the link on your username.

What I want is, if the logged-in user doesn't have the website, there will be the link which will be carry them to their profile page which is something like http://www.example.com?author=21

Is there any function that i can use out there ? Please help me out. Thank you.

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about php