Adding author url in comment
-
Thanks.
What I want to do is: I can make users’ website link (with their login name) on their profile by a simple trick. But, it does not help to show their url in comments. It only shows http://. What should I do now?
in place of http:// what do u want to show??
<?php comment_author_url_link(); ?>
Should Display the URL in full.<?php comment_author_url_link('Visit Site of Comment Author', '', ''); ?>Change “Visit Site of Comment Author” to set link text
can u please tell me exactly what website url u want to show in memebers profile as default?
I’d like to show their personal blog/profile link on their name in the comments section.
if i understand u correctly then u want to set a default profile link for every registered member in ur blog instead of showing only http:// ,rite?
to do this u need to modify registration.php file located in wp-includes.
find the linew below there:
if ( empty($user_url) )
$user_url = ” ;
$user_url = apply_filters(‘pre_user_url’, $user_url);here the null value for $user_url gives http:// in return. u can set the value u want to get in website url as default.
let me know whether it works or not.
but it will work only for those who will register to ur blog after modifying this. but not for the existing members.
Thanks mate. I will inform you after checking. Cheers.
Thanks a lot. It worked.
The topic ‘Adding author url in comment’ is closed to new replies.
(@tazme)
17 years, 11 months ago
When a registered user makes any comment, to show his url to his blog on that site, his website link needs to insterted in the profile menu under dashboard. Is there any way to show blogger’s link automatically. I mean how can I echo user’s login name in comments.php file so that his profile url is automatically inserted with his nickname.