Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I’m maintaining a rather simple blog where a small number of people are registered as administrators to write posts. When making a link to the authors URL in a posts meta data, I use the function

get_author_posts_url(authorid).

This links to e.g. mydomain.com/author/bill This is the correct URL for the author Bill. Now I’ve just discovered that when one of the admins create a comment to a post, the author comment URL link reference to the wrong URL. If same author, Bill, makes a comment to a post, the link is:
Mydomain.com/authors/bill (with an s behind author). This is wrong and when following this URL it gives me a 404 error.

I’ve tried different methods to overcome this, trying to create my own callback comment function, tried to create a custom rewrite function and such but nothing has worked. Initially I don’t understand why the comment author URL is different but that’s another question.

Any help or suggestions to solve this small, but very much annoying problem would be appreciated.

Thanks
- Mestika

share|improve this question
    
maybe show the code excerpts that generate the wrong URL? –  moraleida Apr 12 '12 at 3:42
add comment

1 Answer

up vote 2 down vote accepted

I believe you may be over-thinking this. I don't use comment author URLs very often, but if I'm not mistaken, the URL for the author of a comment is usually the website URL the user has set in their profile.

I had the same issue once. The author didn't have his own website, so he wanted his comments to link to his profile page on the website... But he entered the URL incorrectly.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.