Support

Account

Home Forums Feature Requests User Field – Customizing Select Drop-down

Helping

User Field – Customizing Select Drop-down

  • It would be a nice feature to have some way to further customize–either through dashboard options or filters–the select drop-down (e.g., what user properties show up, and in what sort order).

    For example, for a site I am working on I would have liked (especially on the front-end) to simply show wp_users.display_name (no login), sorted alphabetically (rather than by id).

    I could also imagine a use case for wanting them sorted by wp_users.user_registered, etc.

  • Hi @gato-gordo,

    Thanks for the feature request.

    For the frontend values, you can use array sorting functions such as asort() to fix this on your template.

    http://php.net/manual/en/function.asort.php

    This function will sort the array, maintaining the index associations.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘User Field – Customizing Select Drop-down’ is closed to new replies.