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

  1. tobrien82
    Posted 3 years 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.


  2. Brett Shumaker
    Plugin Author

    Posted 3 years 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
    Posted 3 years ago #

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

  4. Brett Shumaker
    Plugin Author

    Posted 3 years ago #

    No problem! Glad I could help.

  5. jpod
    Posted 2 years 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

  • Simple Staff List
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.