Author Page Problems
I have a page called author.php and have followed the instructions here http://wordpress.org/support/topic/27554#post-154689 and I use this link in my sidebar:
‘<?php wp_list_authors(‘optioncount=1&show_fullname=1&exclude_admin=0&hide_empty=1′); ?>’
But when I click on an author name and am taken to the author.php page the page is blank.
Am I doing something wrong here?
“How would I display the author description once and then the posts below it?”
<?php echo $curauth->user_description; ?>
That is, if we can get the code you’re using to work. With your example author, is
john-harringtonthe actual login name on the account? Do no logins work when used with
Thanks for the reply!
No John-Harrington is a low-level login and not admin.
No logins work with author_name for some reason.
I may download a nightly to see if that fixes this 1.5 problem for me.
I’ve looked a bit at the source, and I’m not sure what the problem would be with
author_name. I don’t think I’ve ever seen it fail to work. That is, as long as whatever is calling up the link is correctly passing the login and not some other name (first, nick) from the user profile.
I’m having a very similar problem here – my author’s posts all print out, but none of names or profile info will print. Any pointers would be greatly appreciated as this is not as simple as the codex would lead you to believe.
Wp can be wicked with links if you changed the link structure. I know have a simular problem as above but then with the month links:
Does anyone know how to change this?
Has this issue been resolved yet? I am having the same trouble described by Silvetti and DaveQ. I am still playing around with WP 1.5.2. Is this still an issue with WP 2? Or will simply upgrading solve it?
Anyway, here is what I have:
To get my author links, I have this in my sidebar:
<?php wp_list_authors('exclude_admin=0'); ?>
When I click on an author’s name (ex: ‘montag’), the url looks like this:
My author.php file includes the following (and I’ve tried substituting all the other examples in the codex to no avail):
$curauth = get_userdatabylogin($_GET['author_name']);
$curauth = get_userdata($_GET['author']);
I may not have the terminology correct, but it seems as if PHP is not passing the author query. The link is correct, so the list of posts for the author shows, but ‘Current Author’ doesn’t pick up the author name, so the author’s nickname and profile do not display.
I solved the problem. I had started by copy pasting code from the codex that looked like this:
<h2>About: <?php echo $curauth->nickname; ?></h2>
<dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
<dd><?php echo $curauth->description; ?></dd>
<h2>Posts by <?php echo $curauth->nickname; ?>:</h2>
And I encountered the problem detailed in my post above.
Where it says
I replaced it with
Where it says
I replaced it with
I took the liberty of editing the codex.
Hmm, that’s strange.
I had problems with author name not being displayed, but when I edited
So shouldn’t the wiki be edited to indicate trying both?
snowcrash, thanks for posting that, that’s the only way it worked for me too. =) But, gotta add the codes for the Contact Info yet..then should be set. =) =/
I’m using a WordPress 2.0 template called Alexified to run a multi-user blog. http://www.digitalchalkie.com/
I’d like readers to be able to click on a post authors name and be taken to an “archives/author/User” page.
The K2 template does this automatically eg. http://www.paraburdoo.det.wa.edu.au/
Any suggestions much appreciated.
I copied the code directly from the example given in http://codex.wordpress.org/Author_Templates
The only thing I changed is $curauth->user_nickname to $curauth->nickname
When I tested it out, it looks like it only shows the recent (probably current month’s) posts. My site is veggyplease.mooo.com and the authors list is in the archive page.
I’ve looked at the whole code and Kaf’s example (ie. http://paste.uni.cc/7036) and still have no idea what’s the problem. Could someone help me please?
I’m sorry, it turns out the posts displayed for the authors is not recent, they seem random. One author have 14 posts, but when I click on that author’s link, it only shows 2 posts. Could someone help me please?
oh, I think I finally see it, it’s the most recent two posts by the author.
I will revive this thread because I am having a problem linking to my author page.
Here is the situation, I have an author page and I can call up the page with no problem if i type the link in manually as ‘/?author=1’.
However, if i click a link that is generated EITHER via wp_list_authors or the_author_posts_link it produces a malformed URL that looks like this: http://disembodied.us/author/Marcus Schultz-Bergin
And of course the link doesn’t work… Everything I have seen has said the link should be something like ../archives/author/name, but of course mine isn’t and moreover no matter what I change ‘nickname’ it still produces ‘Marcus Schultz-Bergin’ rather then one word or something else.
So, is there a way to just have it call the page (dynamically) via the author id or a way to get it to output the link correctly?
Okay, so I sort of fixed my own problem… for some reason, when I tried to use my initial admin account as the author, despite the username being just one word, it wouldn’t print out the right page. So I just created a new user account and will use that for all posting and what not (assigning it admin helps) and it outputs the correct author file.
Figured I would put an update here in case someone else has a problem similar to mine.
- The topic ‘Author Page Problems’ is closed to new replies.