Home Forums WC Vendors Free Support Is there a way to make the vendor list sort by last name?

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8778
    dll416
    Participant

    Ben or Jamie,

    I’m using this currently [wcv_vendorslist orderby=”display_name”] and it works but it is sorting by first name becuase everyone’s nice name is first name then last name. I also don’t want the alphabetical order to mess up if some chooses a different display name. Is there a way to make it sort by last name? I’ve been searching for a solution but am coming up blank.

    Thanks,
    Deb

    #8785
    WC Vendors Support
    Participant

    Hi Deb,

    I’m not sure if this will work, but you can try orderby=”last_name”

    Ben

    #8864
    dll416
    Participant

    Ben,

    I had orderby=”last_name” through the development process and thought it was working but all the usernames were vendors last names. Then we got a new user whose username is their first and last name and they were put with the J’s (first name) instead of the W’s (last name) in the vendor list.

    So I guess it was sorting by username and not last name.

    Deb

    #8866
    WC Vendors Support
    Participant

    Yea, so that’s a no go for now then. The entire shortcode would have to be rewritten to do this, so we probably will not be able to do so.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.