Forums

[resolved] Create a nice author listing page (6 posts)

  1. bendrucker
    Member
    Posted 1 month ago #

    I want to create a nice author listing page. Here is, in my opinion, the easiest way to do it, although correct me if there's an easier way. I already have styled my individual author pages to a point where I like the way they look. So here's what I'd like to do to make the full listing.

    Start with a list (array?) of user ID's. So if I wanted the author page to include user1, then user2, then user 3, I'd put those in there. From there, I guess there'd need to be some type of loop where it would keep running a script for each user ID. Since I already have the code to style the user info, there's no extra effort for that.

    Would anyone be willing to help me out? Thanks in advance!

  2. MichaelH
    moderator
    Posted 1 month ago #

    From notes:

    <?php
    //list users of blog
    $blogusers = get_users_of_blog();
    if ($blogusers) {
    foreach ($blogusers as $bloguser) {
    $user = get_userdata($bloguser->user_id);
    //echo "<pre>"; print_r($user); echo "</pre>";
    echo 'User ID ' . $user->ID . ' ' . $user->user_firstname . ' ' . $user->user_lastname ;
    }
    }
    ?>

    Also see:
    Author Templates

  3. bendrucker
    Member
    Posted 1 month ago #

    Thank you so much. With the basic structure you gave me, I was able to create a great staff page. (http://www.academicperspective.com/staff/)

    Thanks again, I really owe you one!

  4. variera
    Member
    Posted 2 weeks ago #

    Very nice staff page. Could you write a short tutorial on how you did it? Please...

    André

  5. MichaelH
    moderator
    Posted 2 weeks ago #

  6. variera
    Member
    Posted 2 weeks ago #

    I tried to make a template but I can´t figure out how to make it look as good as in the page above...

    A walkthrough would be very nice...

Reply

You must log in to post.

About this Topic

Tags