Random Sort for Featured Listings in Category

This topic contains 5 replies, has 4 voices, and was last updated by  Stiofan O’Connor 7 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #358498

    Ray Scarpa
    Expired Member
    Post count: 84

    Hi,

    When visitors currently view listings in a category, Featured listings appear first and then other listings are below. Those featured listings seem to appear in order of latest added. Wondering if the Featured listings can be sorted randomly but still appear above the non-featured listings? Otherwise the longer a customer has been paying for the privilege of being Featured, the further away from the top they get, which seems bad for them.

    Any suggestions would be appreciated.

    Thanks!

    #358760

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I don’t think there is any easy way to do that, but I asked to Stiofan to let us know what he thinks.

    Thanks

    #359413

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    That can’t be done for a number of reasons.
    You could try adding a widget above and sort it by random but any sort of caching will not play well with that.

    Stiofan

    #363797

    Ray Scarpa
    Expired Member
    Post count: 84

    So sorry, could you clarify “adding a widget above and sort it by random…” for me? Thanks!

    #363814

    Dirk
    Full Member
    Post count: 390

    Hi,

    there is a hook “geodir_filter_widget_listings_orderby” where you can change the sorting. I used it to change from latest added to latest modified. RANDOM sorting is always an issue with caching and I would not use it.

    Best,
    Dirk

    #363892

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    @ray I mean add the popular post widget to the category top section, but this will not limit it to the current category only to the current CPT, but you could clone that widget code and add that functionality.

    Stiofan

Viewing 6 posts - 1 through 6 (of 6 total)

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

Open Support Ticket