All the post from a certain author
-
Hello!
i’ve looked trough the forum but I didn’t find the answer for my problem: ho can i list (and link them) all the posts from a certain author?thanks in advance!
-
nobody knows how to do it?
<?php the_author_posts_link(); ?>that has to go within the loop btw
You can replace the_author with the_author_posts_link in single.php. If you want to do it manually, the url format is yourblog/author/user.
Thanx for the replyes, but what i would do is to make a list of the posts and not a link to all the posts (sorry, but actually my english is not so good) from an author …
still no one?
Well, copy one of the archive templates, for instance, into a file called author.php, and put it in your active theme’s folder. Then you can start removing things you don’t want there, for example the_content (or the_excerpt) that shows the post text.
yes, but how can i filter ‘by author’. I didn’t read in the codex that wp_get_archives or get_archives have an ‘author’ parameter. Or am I wrong? Many thanx!
You can link to an author’s posts by
the_author_posts_linkas people have suggested above, but instead of showing the list of all the posts with their contents and everything (like a regular archive) you can choose a “stripped down” view of just post titles (or whatever you want). From there people could click on the title to get to the post’s individual page.Or do you want the list in a sidebar? That’s less straightforward — and people may have so many posts that the sidebar gets loooooooong
uhm, i think my english is too bad to express what I have in mind, but i’m sure it can be done, because i’ve seen this before in some other wp blog.
My Idea is to make an author page with this structure.====
Personal page of ‘author name’
Hello this is my page bla bla bla …
My post are:
– my first post (link)
– my second post (link)
–– my n post (link)
========
thanks again for your kindly helpAh… Now I get it! π I’m pretty sure I’ve seen a template or even a plugin for this. I’ll look around or maybe someone else will remember it before I find anything.
Another idea. What if each author put that “Hello” text in their Profile (unless it’s already in use) so you could take advantage of that. So you’d have something like in the author.php:
Personal page of <?php the_author(); ?>
<?php the_author_description(); ?>
and then some way to put that post list…Ok, maybe not such a good idea. I’ll go and look for something useful π
Than k you Minna!
(I’ve already used your ideas π … now i’m crossing fingers for the list thing)
If you used several author.php pages (author1.php, author2.php) you might be able to use the is_author conditional tag within the loop to generate a list of posts.
Or, the customisable post listings plugin has an author function:
http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/I recommend Coffee2Code’s plugin!!! π
i’ve used several author.php pages .. how to make the is_author thing? i’ve looked in codex, but I didn’t understand.
many thanks!
something like:
Start of loop<?php if ( !(is_category(‘authorID’)) ) { ?>
loop stuff here
<?php } ?>
end loop`
Looking at the codex should help:
http://codex.wordpress.org/The_Loop
http://codex.wordpress.org/Conditional_tags
The topic ‘All the post from a certain author’ is closed to new replies.