WordPress.org

Ready to get started?Download WordPress

Forums

Simple Staff List
[resolved] sort alphabetically (5 posts)

  1. tobrien82
    Member
    Posted 1 year ago #

    is there anyway you can sort the list alphabetically? I know if you use the asc or desc option in the short code it will just use sort list either normally or in reverse... I have over 80 staff members, it would take a while to sort them all alphabetically in the "order" option. It would be nice if you could have the plug-in do it automatically. Especially helpful when adding new staff members not to have to re-order the list.

    http://wordpress.org/extend/plugins/simple-staff-list/

  2. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    Not really. You could easily sort the staff posts alphabetically, but it would be by their first name, which isn't really that useful. If you still wanted to do that, you'll have to edit a plugin file to do so.

    Replace the entire file user-view-show-staff-list.php with the code contained here: http://pastebin.com/REUhhHQT

    Then you'll be able to use:

    [simple-staff-list orderby="title"]

    Doing the above WILL override the manual sort.

    I understand how this could be a useful feature for someone that has a large number of staff members. The issue here, is somewhat of a lack of foresight on my part, is that the "name" field is not separated into "First Name" and "Last Name." I'll see if I can find a way to issue an update for the plugin that could add those fields reliably for existing users.

  3. tobrien82
    Member
    Posted 1 year ago #

    That's exactly what i was looking for. Thanks!

  4. Brett Shumaker
    Member
    Plugin Author

    Posted 1 year ago #

    No problem! Glad I could help.

  5. jpod
    Member
    Posted 5 months ago #

    Thanks for the patch, but say, could you include it as a feature in future versions? I just patched the plugin for a website I make for a client and I wouldn't want the next upgrade to break the site. Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.