Have a link for us to look at?
Does that author have any posts? And are you using permalinks or not? That might help us, too.
Sure and thanks for replying:)
http://www.nuveautek.com/author.txt
yes, all authors have posts and am using permalinks like this
/archives/author/charlotte/
You need to have The Loop in it.
Ah thanks Kaf and on my part oooops 🙂
UPDATE: Hmmm still not working. Now I get repetive h3 tags for the number of posts for the author (but no name) and nothing else.
Have I done something wrong?
http://www.nuveautek.com/author.txt
Thank you
This should do it:
http://paste.uni.cc/7036
Note my ~notes~ where your post content (i.e. Loop) template tags need to go. I also removed the commented template header, as that’s only required for Page (and not general theme) templates.
Hi Kaf,
I owe you a pint 🙂
That worked just great although the author is still not showing in the h3 tag. The hard coded ‘you are viewing….’ displays but not the authors name.
Thanks again
Not sure why this doesn’t work for everyone…try this version of the code that retrieves the author’s info:
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($_GET['author_name']);
else :
$curauth = get_userdata($_GET['author']);
endif;
?>
Hmmm not even that variation is working.
Thanks anyway 🙂
Uh, is an author query actually being passed? What I mean is, how are you accessing author posts using this template?
Hi Kaf,
I am using:
‘<?php wp_list_authors(‘optioncount=1&show_fullname=1&exclude_admin=0&hide_empty=1′); ?>’
And what is the full url for a particular author? I’m assuming when you click the link for one, all their posts, and only theirs, are displayed.
Hi Kaf,
domain.com/archives/author/john-harrington/
I would give you the real domain but server is down.
but the strange this is (although I may have placed some code in the wrong place) that everything I put like author description is repeated for every post snipett.
Here is my current code – http://www.nuveautek.com/author.txt
Thanks
“everything I put like author description is repeated for every post snipett”
That’s because it’s a part of the post loop, and every new post displayed will repeat the html and template tags used within it, including author-related tags.
Do me a favor and instead of using the links, provide query urls to call up the author’s posts:
/?author=1
(or whatever the correct author ID is) and
/?author-name=john-harrington
Do both of these work, or one but not the other, or neither?
Hi there, Well……
/?author=1 works correctly where as author-name does not.
As regards the loop/ How would I display the author description once and then the posts below it?