WordPress.org

Ready to get started?Download WordPress

Forums

Display list of users (with a twist) - help! (7 posts)

  1. ecwatral
    Member
    Posted 9 years ago #

    Ok, I'm looking to diplay blog users in my sidebar. Now, I know that I could use the list_authors tag. However, I'm looking for a little more functionality. Basically, I would like to dynamically list blog authors, sorting them so that the author who has made the most posts is at the top. I would also like to hide those authors who havn't posted yet. On top of that, would like to add a second line below the author name (separated by a <br>) that displays some secondary information (thier academic standing - this is a blog for an academic program). I know this may be a tall order, but if anyone has any experience with this, any thoughts as to ow I can go about it, or can point me in the direction of a plugin or a hack, I would be extremely greatful. cheers.

  2. ecwatral
    Member
    Posted 9 years ago #

    woops - slight revision. I Was reading the list_authors documentation, and I noticed that one of the parameters allowed you to hide authors with no posts. So, if I were to use the list_authors tag, I would only want to sort by the number of posts each author has made, and then add that second line of text below the name. thanks.

  3. skippy
    Member
    Posted 9 years ago #

    list_authors and wp_list_authors are too rigid for your needs. What you'll need to do is create a custom query, and then loop over the results.

  4. ecwatral
    Member
    Posted 9 years ago #

    sigh - out of my range of experience. Any pointers as to whre I should look for some help.

  5. skippy
    Member
    Posted 9 years ago #

    You can look in /wp-includes/template-functions-author.php for the list_authors() function, and use that as a starting point.

  6. Damek
    Member
    Posted 8 years ago #

    Any success, ecwatral? I have a similar need - a community activist organization using wordpress as a CMS, and having people (who want to join us to help out) register on the site. That makes them all Subscribers in WordPress, and allows us to send them occasional email notifications and stuff.

    But we'd like to have a page (subscriber-only) listing all the members with some bio information on each one. So it'd be way more than list_authors, sort of looping through each user on the site and displaying info on each one.

    Any sort of solution out there?

  7. vlp
    Member
    Posted 7 years ago #

    Anybody found solution for this topic? This is exactly what I need right now.

Topic Closed

This topic has been closed to new replies.

About this Topic