WordPress.org

Ready to get started?Download WordPress

Forums

Business Directory Plugin
[resolved] Random Order (13 posts)

  1. raquel_p
    Member
    Posted 1 year ago #

    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/

  2. businessdirectoryplugin
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. raquel_p
    Member
    Posted 1 year ago #

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

  4. businessdirectoryplugin
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. raquel_p
    Member
    Posted 1 year ago #

    Thanks!

  6. flaviofernandes
    Member
    Posted 1 year ago #

    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

  7. businessdirectoryplugin
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. candell
    Member
    Posted 1 year ago #

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

  9. businessdirectoryplugin
    Member
    Plugin Author

    Posted 1 year ago #

    Have you also noticed the Random ads widget?

  10. candell
    Member
    Posted 1 year ago #

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

  11. businessdirectoryplugin
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  12. benwalsh
    Member
    Posted 1 year ago #

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

  13. deltasi
    Member
    Posted 1 year ago #

    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"

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.