• Hi,
    I’d like to know if it is possible to add a button to my wp blog that filters all entries by their author so that I could get everything written by John or Jim or Jack, no matter in which category it is. I guess a simple PHP snippet would suffice, but I am not at all familiar with how to come up with PHP code, so any help would be appreciated 🙂

Viewing 15 replies - 1 through 15 (of 16 total)
  • index.php?author=xxx seems to work with me 🙂

    Thread Starter Anonymous

    How can I make such a link in my index.php that will do exactly this? I guess it is not wise to hardcode this into my template, is it?

    Thread Starter Anonymous

    Thanks, this works great for me 🙂

    my bad.. should ahve read the wiki 🙁

    Thread Starter Anonymous

    Can it be set so that the authors listed are links to a bio page?

    there are no bio pages at the moment in wp. or did i miss anything :O(

    Thread Starter Anonymous

    No, I was thinking of adding static pages, or even a category that each author posted a short bio to. Then, I was wondering if when one clicked on their name it could lead to their entry.
    I don’t think so, though.

    well this would have to be done manually i guess. 🙂

    Well I was just playing with the stuff to see what happened.
    The code above sets the path of each author as: (with permalink paths turned on for me)
    site-url …index.php/archives/author/frank/
    and the site owner as
    site-url … index.php/archives/author/site-admin/
    What loads is a page with the most recent post at top, just like the home index.php, with just that authors posts showing.
    You could create a category AUTHORS and don’t ever assign posts to it, then make subcategories, of each author’s name, and also one called BIO, all under the category AUTHORS
    AUTHORS
    –frank
    –joe
    –lucy
    –BIO
    Then have each author make one post to BIO and only to BIO, and if they can, all other posts they make can be credited to their “AUTHORS/name” category, if they can remember to do that.
    That’ll give you multiple ways to figure out displaying their stuff.
    I’m not saying the above is all right, just that it’s a start to thinking outside the box as to how to use WP for multiple authors in a creative way. It might be better to arrange the categories a different way …
    It surely not exactly the right way to do stuff entirely, that all I came up with in just a couple of minutes of playing with things.
    You definitley might want to take a look at using meta_keys custom fields, like as sticky posts, use ideas from that whole end of using WP to see what can be done.
    You can set up other index.php’s with custom page coded setup to draw in the data you want. So just play around with any idea you may have, and see what can be done!
    Oh and don’t forget the LINKS MANAGER you can set up links to anything generated outside your WP installation, or within it.

    awe-freaking-some!!!!!!!

    Thread Starter Anonymous

    Excellent. Thank you!

    <li id="categories"><?php _e('Authors:'); ?>

      <?php list_authors(); ?>

    It displays a list of authors, but nothing when thier name is clicked- All that would be nice is for it to display a linked authorname, number of post, author homepage. How can this be done?
    With the link for the authorname taking the reader to a page with that authors articles.
    http://www.ctfzone.net/zone/author_posts.php thx!

    bumped please

    Thread Starter Anonymous

    OK, I added another author to my blog and it doesn’t work anymore.
    The code snippet looks like this:

    <div id="menu">

      <li id="categories">
      <?php _e('Autoren:'); ?>
      <?php list_authors(); ?>

    <?php _e('Categories:'); ?>

      <?php wp_list_cats(); ?>

    ...

    When I click on the name of the site-admin I get to
    http://joblog.yauh.de/archives/author/site-admin/
    But clicking on someone else’s name brings me to
    http://joblog.yauh.de/archives/author//
    Is this a bug or just my own stupidity? Any help is greatly appreciated!

    Thread Starter Anonymous

    PS, the code tag didn’t help very much, I probably forgot to escape the < and > symbols :-/

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Filter all entries from one author’ is closed to new replies.