Support » Plugin: Business Directory Plugin » Random Order

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author businessdirectoryplugin


    Hi raquel_p,

    While this is true, it makes browsing the directory frustrating for users that expect a certain order. We’ve considered this, but haven’t had enough support to add it to date.

    But to support what you are asking, we have a Random Listings widget for BD on the widget panel.

    Imagine if Google were the order alphabetically? Ascending or descending, what difference would it make? I bet nobody would be happy.

    I have a wide experience of many years with business directory that build in php + mysql for my old site. And I can say that the shuffle is the fairest. Users are not seeking the order, they are seeking the first companies that appear (just like Google). Now I have a wordpress, but have not found a convincing solution.

    Another question: Who are your first customers with directory? Companies or users? Who’s gonna pay anyway?

    Perhaps, to be fair to everyone. We could define a default order (random in my case) and the user could access the order you want by means of a button in order frontend.

    Sorry for my poor english (I use Google Translate).

    Plugin Author businessdirectoryplugin


    I received this email from another user recently. To add random listing support, he did the following:

    Line 84 in wpbdp-settings.class.php:
    array('choices' =_ array('date', 'title', 'id', 'author',
    Replace with:
    array('choices' =_ array('date', 'title', 'id', 'author', 'modified',

    This seems to work just fine. We’ll look to add it for the future, but this will give you what you want now. Seems easy enough.


    I’m having the same kind of problem but for me someting else happed.
    When I change from line 84 for the one said above nothing happens.
    And the post don’t random.
    Any ideas? It´s urgente cuz I’m way behind on schudule!

    Thank you all for your help.


    Plugin Author businessdirectoryplugin


    That change only works on of Business Directory. If you have an older version of the plugin, or perhaps an older version of WordPress, the results may not be the same.

    Have you tried the random widget instead? That doesn’t require modification.

    I am using and it didn’t work for me either.

    Plugin Author businessdirectoryplugin


    Have you also noticed the Random ads widget?

    Yes I noticed that on a previous comment, I am wanting randomised results on the listings page not as a widget

    Plugin Author businessdirectoryplugin


    Yeah, that’s something we’ll need to build in at this point. If the quick hack above isn’t working, I’m not sure why.

    array(‘choices’ =_ array(‘date’, ‘title’, ‘id’, ‘author’, ‘modified’, ‘rand’)));
    works for me thanks

    Great solution thanks.
    May be worth mentioning that you need to go into “Directory Admin > Manage Options > Listings > Post/Category settings – “order directory listings by:” and choose “rand”

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Random Order’ is closed to new replies.