Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    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.

    Thread Starter siriusly

    (@siriusly)

    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!

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    I’ll need to get that info from my developer. I’ll let you know when I hear back.

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    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].

    Thread Starter siriusly

    (@siriusly)

    Thanks! I will try that method. It would be great if this could be added as a feature in upcoming release!

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    We’re looking into adding this, stay tuned.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Order listings by last name?’ is closed to new replies.