WordPress.org

Ready to get started?Download WordPress

Forums

A way to display users on a page? (7 posts)

  1. JPigford
    Member
    Posted 9 years ago #

    So I run a site where I have "contributors" and am planning on creating a "contributors" page to display info about each of them. What I would like to do is just display the name and profile of each user using the info they filled in on the profile in the admin area. I know I could just code up a quick mysql query but didn't know if wordpress had an easier way to do this.

  2. Jinsan
    Member
    Posted 9 years ago #

    i assume that you're using 1.5 - people seem to forget to include what version they're using which makes ti difficult to know.

    so assuming you're using 1.5, you can create a template called authors.php. read this for template info:
    http://codex.wordpress.org/Templates

    Within that template file, you can use author tags:
    http://codex.wordpress.org/Template_Tags

    read the the relevant tags and see the variables they offer. With a few tags you can create the required effectof having a list of authors on your page, with their profile.

  3. Lorelle
    Member
    Posted 9 years ago #

    http://codex.wordpress.org/Template_Tags/wp_list_authors
    http://codex.wordpress.org/Template_Tags/list_authors

    They do the same things but they do it a little differently, but they are what you want to generate a list of authors. They should generate links that will open up pages with a list of the author's work.

  4. JPigford
    Member
    Posted 9 years ago #

    I'm semi-getting a hold of this but am having trouble just listing what I'd like. For instance, I have:

    <?php list_authors(FALSE, FALSE, TRUE, TRUE); ?>
    <?php the_author_description(); ?>

    on this page: http://www.theappleblog.com/contributors/

    Obviously I'm not doing the author description tag correctly.

    Also, the links aren't working for the author either...how would I fix that?

  5. JPigford
    Member
    Posted 9 years ago #

    Hmm...okay, just read this for the_author_description tag:

    "Displays the content of the Profile: field in a user's profile for the author of a post. "

    So according to that it would only show my profile on that page since I created the page (which is what it's doing at this point).

    How could I make it show everyones?

  6. JPigford
    Member
    Posted 9 years ago #

    Anybody have some ideas about this?

  7. Kathy_P
    Member
    Posted 8 years ago #

    This thread describes one way of doing what you want to.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.