Forums

WP List Authors Help (8 posts)

  1. teckn1caLity
    Member
    Posted 9 months ago #

    How would I approach this. I'm looking to make a little section in my sidebar that lists all my authors, their post count and their gravatar floating to the left of their name and post count. This code lists the authors in a list format, where would I start to customize it how I want?

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

  2. Jackson
    Member
    Posted 9 months ago #

    First, list_authors is deprecated, you should look at:

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

    Unfortunately, that won't get your author's gravatars. If you're comfortable with PHP you could write your own function, based on wp_list_authors, which is defined in this file:

    http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/author-template.php

  3. teckn1caLity
    Member
    Posted 9 months ago #

    Unfortunately I don't know to much about PHP but I am able to edit and customize php from time to time. If someone could just give me a jumpstart I can definitely find where to go from there ;o .

  4. Jackson
    Member
    Posted 9 months ago #

  5. teckn1caLity
    Member
    Posted 9 months ago #

    That last link, I was able to customize it exactly how I want it. I have 1 question though.

    1.) How would I go about getting the users website from their profile get_user_website (exampe I know it doesn't work). so I can display it under their user name ?

    Also, is there anyway I can get a user post count on the right of their name? I'm used to customizing php but I'm skeptical of doing it within the functions

    http://i54.tinypic.com/14lr22h.jpg

    this is the css im using

    Sorry, forgot. Here is the pastebin code

    http://pastebin.com/GyjHaepa

    I can't link the site because it is not yet live.

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

  6. teckn1caLity
    Member
    Posted 9 months ago #

    Any help with this yet? I don't want to bump nor make a new thread so I'm not sure what to do o.O

  7. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    You might find some useful code snippets in Author_Templates.

  8. Jackson
    Member
    Posted 9 months ago #

    Sorry, it's not clear to me;

    That last link, I was able to customize it exactly how I want it

    The last link was a Google search... Are you using a plugin or PHP functions within your template to display this?

Reply

You must log in to post.

About this Topic

Tags

No tags yet.