• Resolved tobrien82

    (@tobrien82)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Brett Shumaker

    (@brettshumaker)

    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.

    Thread Starter tobrien82

    (@tobrien82)

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

    Plugin Author Brett Shumaker

    (@brettshumaker)

    No problem! Glad I could help.

    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘sort alphabetically’ is closed to new replies.