Hi siriusly,
Right now, the only options we have for ordering listings are under Directory Admin->Manage Options, Listings tab. We don’t yet support ordering listings by custom field data.
Thanks for the reply! Could you tell me where I can find the ordering function so that I might modify it? (And add my request for this feature to your list?) Many thanks!
I’ll need to get that info from my developer. I’ll let you know when I hear back.
Hi siriusly,
I heard back from my developer, here’s what he said:
There is no one function where the sort options are applied. views/views.php contains the functions that are called when browsing the directory (for instance, browse_category() is called when inside a category). All of these functions use the standard WP function query_posts to obtain the set of listings so it is possible to change sorting there (if adhering to the arguments of the function as documented at http://codex.wordpress.org/Function_Reference/query_posts). What the user wants to do could probably be achieved by setting the post order to meta_value and taking into account that if the “last name” field has ID N then the corresponding post metadata key is _wpbdp[fields][N].
Thanks! I will try that method. It would be great if this could be added as a feature in upcoming release!
We’re looking into adding this, stay tuned.