Creating profile pages for registered users
-
My site is restricted to registered users who can comment but not post. I want the commenter’s nicknames to link to a profile page that displays their information. I thought that I figured out how to do it, but it didn’t work the way I thought it would.
<?php comment_author_link(); ?>
links the commenter’s nickname to the URL of their website.<?php the_author_posts_link(); ?> ?>
links the author’s nickname to the author’s profile page (author.php).I opened my comments template and replaced
<?php comment_author_link();
with<?php the_author_posts_link(); ?>
thinking that it would link each commenter’s nickname to their own profile page with their information.Instead, it replaces all the commenter’s nicknames with my own nickname and links to my own profile. It looks like I’m the only commenter to my own posts. I’m assuming this is because
<?php the_author_posts_link(); ?>
works only for authors, not subscribers. I’m the only author on my site, and the rest are just subscribers who can comment.My question is, how can I get
<?php comment_author_link(); ?>
to link to author.php with the commenter’s profile, instead of just linking to the commenter’s URL?Or is there maybe an easier way to accomplish this task?
Any advice would be appreciated. Thanks.
- The topic ‘Creating profile pages for registered users’ is closed to new replies.