Title: Random Order
Last modified: August 20, 2016

---

# Random Order

 *  Resolved [raquel_p](https://wordpress.org/support/users/raquel_p/)
 * (@raquel_p)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/random-order/)
 * Hi, I would suggest ordering the directory listings by random. I think that it
   is fairer for users. After all, when clients seek, the first results are usually
   the most seen and contacted.
 * [http://wordpress.org/extend/plugins/business-directory-plugin/](http://wordpress.org/extend/plugins/business-directory-plugin/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/random-order/#post-3140155)
 * 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.
 *  Thread Starter [raquel_p](https://wordpress.org/support/users/raquel_p/)
 * (@raquel_p)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/random-order/#post-3140372)
 * 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 [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/random-order/#post-3140375)
 * 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',
       'modified')));
   
       Replace with:
       array('choices' =_ array('date', 'title', 'id', 'author', 'modified',
       'rand')));
       ```
   
 * 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.
 *  Thread Starter [raquel_p](https://wordpress.org/support/users/raquel_p/)
 * (@raquel_p)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/random-order/#post-3140377)
 * Thanks!
 *  [flaviofernandes](https://wordpress.org/support/users/flaviofernandes/)
 * (@flaviofernandes)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/random-order/#post-3140429)
 * 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.
 * Flavio
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/random-order/#post-3140430)
 * That change only works on 2.1.5.1 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.
 *  [candell](https://wordpress.org/support/users/candell/)
 * (@candell)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/random-order/#post-3140496)
 * I am using 2.1.6.1 and it didn’t work for me either.
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/random-order/#post-3140497)
 * Have you also noticed the Random ads widget?
 *  [candell](https://wordpress.org/support/users/candell/)
 * (@candell)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/random-order/#post-3140498)
 * Yes I noticed that on a previous comment, I am wanting randomised results on 
   the listings page not as a widget
 *  Plugin Author [Business Directory Plugin](https://wordpress.org/support/users/businessdirectoryplugin/)
 * (@businessdirectoryplugin)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/random-order/#post-3140499)
 * 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.
 *  [benwalsh](https://wordpress.org/support/users/benwalsh/)
 * (@benwalsh)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/random-order/#post-3140514)
 * array(‘choices’ =_ array(‘date’, ‘title’, ‘id’, ‘author’, ‘modified’, ‘rand’)));
   **
   works for me thanks**
 *  [deltasi](https://wordpress.org/support/users/deltasi/)
 * (@deltasi)
 * [13 years ago](https://wordpress.org/support/topic/random-order/#post-3140528)
 * 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.

 * ![](https://ps.w.org/business-directory-plugin/assets/icon-256x256.png?rev=2901888)
 * [Business Directory Plugin - Easy Listing Directories for WordPress](https://wordpress.org/plugins/business-directory-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/business-directory-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/business-directory-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/business-directory-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/business-directory-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/business-directory-plugin/reviews/)

 * 12 replies
 * 6 participants
 * Last reply from: [deltasi](https://wordpress.org/support/users/deltasi/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/random-order/#post-3140528)
 * Status: resolved