PDA

View Full Version : <?php the_author_posts_link(); ?>


BPartch
07-27-2007, 11:03 PM
Hello

I am developing a new theme and am making use of the <?php the_author_posts_link(); ?> tag. This displays the post authors name as a link, easy enough.

It even works! :)

The issue I am having is that the link text is based on the users name set under users in the WP dashboard. This is correct (Ben Partch) though the path (url) it leads to is .../author/johnny-gulag/ as oppossed to .../author/ben-partch/

I have no idea where the johnny-gulag is coming from as it is not even in the list of nicknames in my profile.

I do not get much help from the codex (http://codex.wordpress.org/Template_Tags/the_author_posts_link), anyone have any knowledge of how it creates the URL for the author link?

pbradish
07-27-2007, 11:29 PM
Wordpress Dashboard -> Users -> Your Profile

Is it filled out correctly? If not, I'm stumped without looking at the code :).

BPartch
07-28-2007, 01:08 AM
I still dunno where it came from, as it is not in the user info any place but I must have entered it somewhere at some point, but I went into the DB and changed the user_nicename field, all seems to be working now. :)

ses5909
07-29-2007, 06:33 PM
It should be right here:

http://www.ilovecode.com/pics/authorshot.gif

BPartch
07-29-2007, 07:05 PM
Yes that is what I thought but the name johnny gulag was nowhere to be seen in that list, I must have typed it in at some point but not sure why it dissapeared.