treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Dynamic wp authors page

  • I know about the author template codex, but I'm looking for a way to create a page that will list staff, bios, and images... DYNAMICALLY!
    Meaning, editable and it will have the ability to update automatically as users change.

    Any ideas?
  • a page that will list staff, bios, and images... DYNAMICALLY!


    You want to make a Page template which lists authors , with author description and images/gravatar ?

    btw: Theres lots of plugins which may do some of what you want, and that has code you may reuse in a Page template: http://wordpress.org/extend/plugins/tags/author/
  • I think http://codex.wordpress.org/Function_Reference/get_userdata could help you.
  • I'll give the userdata a shot... will this list all of the users?
  • At the top of this page: http://www.ericdmunoz.com/dhe/author/admin/, you can see that I have a box w/ the user name, pic, and bio (this is in a testing phase).
    I would like to be able to repeat this, if at all possible.
    Like I said, I'll try the userdata and see how that goes.
  • Not much luck. I just gives me 1 user at a time.
    Any idea on how to have it generate all of the users at one time?

    I'm looking for something like this: http://www.viget.com/about/team/
  • Ok, it looks like the 2nd one would work.
    I'm not very good w/ php, but what I can tell is that it has an multi-author loop that I can add bio info via the backend.

    I'm a teacher full-time so I have to do grading today and I'll try it this week and I'll let you guys know how it goes. :D

    Hopefully, it works.
  • Ok!! I found something that works!!!
    http://guff.szub.net/source/page-authors.php

    I have 1 problem. There's no link to individual profiles.
    Here's the line in which I want to link up to the individual profile:

    <h3 id=\"user-<?php echo $user->ID; ?>\" class=\"author-profile\"><?php echo $user->user_firstname; ?> <?php echo $user->user_lastname; ?></h3>

    Any idea how to link
    <?php echo $user->user_firstname; ?> <?php echo $user->user_lastname; ?>
    to a personal profile?
    By profile I mean the default author.php page.