Random Listings

This topic contains 3 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #511339

    Rudi Khoury
    Full Member
    Post count: 36

    Hi,

    I have utilised the featured listings feature on my Home Page and I can only show a limited number of featured listings on the home page for design aesthetics, so I would like to randomise the featured listings shown every time the page is refreshed.

    I understand that the random feature on GD Listings is set to update every 24 hours and I have found a snippet on a forum from Stiofan to change it to update every 4 hours. view here: https://wpgeodirectory.com/support/topic/random-display-of-listings/#post-467205

    Are you able to provide me with a snippet to update every time a user visits the website?

    Thank you

    #511356

    Kor
    Moderator
    Post count: 16516

    Hi Rudi,

    Thanks for your post. You’ll need to change the code provided by Stiofan as explained here https://wpgeodirectory.com/support/topic/listings-random-not-changing/#post-502309 .

    #511518

    Rudi Khoury
    Full Member
    Post count: 36

    Hi Kor,

    Thanks for that.
    Could you please send me the full code to do what im trying to achieve. I did as instructed, however, it does not work.

    Looking forward to your response

    Thank you

    #511527

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)

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

Open Support Ticket