Listings > Random not changing

This topic contains 10 replies, has 2 voices, and was last updated by  Kor 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #502232

    P O
    Expired Member
    Post count: 501

    I added a widget with GD>Listings and selected random.
    I added a shortcake to a page with random as well.

    It always shows them in the exact same order, no random.

    Why?

    Thanks.

    #502239

    Kor
    Moderator
    Post count: 16516

    Hi P O,

    Thanks for your post. Just tested it on our dev site and I’m able to replicate it. I’ll go ahead and report this to the developers.

    #502245

    Kor
    Moderator
    Post count: 16516

    Hi PO,

    I’ve just checked with a developer and randomizing actually works and it defaults to 24 hours per change. If you wish to reduce the timing, you can use the solution provided by our devs here https://wpgeodirectory.com/support/topic/random-display-of-listings/#post-467205

    #502246

    P O
    Expired Member
    Post count: 501

    And how can I make it random?

    Not by time, by days or by hours. Actually random.

    Each page reload shows random places.

    Thank you.

    #502259

    Kor
    Moderator
    Post count: 16516

    Hi P O,

    Thanks for your reply. It would require some adjustments to the code. Kindly renew your GD membership for support and we’ll assist you further with this.

    Thanks!

    #502261

    P O
    Expired Member
    Post count: 501

    I have to pay for the main free plugin support?

    Thanks.

    #502291

    Kor
    Moderator
    Post count: 16516

    Hi PO,

    Thanks for your reply. If you’re already using our premium addons, you are not eligible for support for the core plugin as well. Unless you resubscribe to a membership. It’s explained here https://wpgeodirectory.com/support-policy/ . I hope this clears it up.

    #502292

    P O
    Expired Member
    Post count: 501

    I am using GD and my theme, nothing else. No add-ons, no nothing.

    The described problem is for the main “Free” plugin, not for the add-ons.

    I don’t understand the problem or why you want me to pay.

    #502303

    Kor
    Moderator
    Post count: 16516

    Hi P O,

    Thanks for your reply. Kindly share your Website WP admin access here in private reply and we’ll test out some custom code for you.

    Thanks!

    #502304

    P O
    Expired Member
    Post count: 501

    Based on the previous replies and knowing that GD does 24 hrs random. Why you need access to my installation?

    You can test in your dev environment, as this is a natural GD function, there is no need to have a custom special code for me, just a function as the mentioned above, but instead of reducing time, make it really random.

    Thank you.

    #502309

    Kor
    Moderator
    Post count: 16516

    Hi P O,

    Thanks for your reply. Try using the code here https://wpgeodirectory.com/support/topic/random-display-of-listings/#post-467205 and change the snippets following the code below. The code snippets below are not fully tested.

    4 hours

    set_transient( 'geodir_rand_seed_custom', $rand_seed, 4 * HOUR_IN_SECONDS ); // 4 hours

    `
    1 hour

    set_transient( 'geodir_rand_seed_custom', $rand_seed, 1 * HOUR_IN_SECONDS ); // 1 hour

    or this code snippet to test on every refresh (only recommended for testing)

    add_filter('geodir_rand_seed','__return_false'); // Upon refresh
Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket