john-hoare
Forum Replies Created
-
Forum: Themes and Templates
In reply to: comment_author_link() problemResolved, then. Slightly disappointed I never got an answer to my query.
Forum: Themes and Templates
In reply to: comment_author_link() problemWell, for what it’s worth, I did this:
<?php if ($comment->user_id != 0) { $user_info = get_userdata($comment->user_id); ?><a href="<?php echo($user_info->user_url);?>"><?php comment_author() ?></a><?php } else { comment_author_link(); } ?>This spits out the user-entered URL if the commenter isn’t registered – and if the user is registered, pulls the website URL from their profile instead.
Shouldn’t the system really be doing this automatically, though?
I’ve been trying this with WordPress 2.9.1, but comment_author_url() isn’t displaying the URL from the profile of registered users. I’m definitely using it in the correct place in the comment loop – unregistered users URLs are showing up fine.
What am I missing?
Forum: Fixing WordPress
In reply to: Admin URL not displaying in commentsI’m having exactly the same problem, with WordPress 2.9.1 – in fact, it’s the same for all registered users. Anyone got any ideas?