gd_listings sort by featured pagination not working correctly

This topic contains 24 replies, has 3 voices, and was last updated by  Stiofan O’Connor 7 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #419241

    Richard Davies
    Buyer
    Post count: 118

    Hey,

    In the page listed below, I am using the gd_listings shortcode which is sorted by featured.

    But I have noticed, after the featured listings, it shows the listings randomly. Which after I click next page at the bottom, will show some listings on the first page.

    Details to follow.

    https://www.explore-liverpool.com/things-to-do-featured/

    the above link is the best page to nitice this bug.

    Cheers

    #419242

    Richard Davies
    Buyer
    Post count: 118
    This reply has been marked as private.
    #419309

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    that is a good description of the expected behavior: Featured, first, then, random, and featured only shows on the first page (if there are multiple pages).

    Can you describe more of what you would like to see instead?

    #419415

    Richard Davies
    Buyer
    Post count: 118

    Thats what I want to see.

    Its if you use the pagination to go on the next page, it shows listings from the first page on there.

    #419498

    Alex Rollin
    Moderator
    Post count: 27815

    So, not sure I am getting it. Which behavior is it you want?

    #419509

    Richard Davies
    Buyer
    Post count: 118

    Its the same behaviour. I am just wondering why listings on the first page, also appear on the second?

    So its repeating the listing across pages.

    #419533

    Alex Rollin
    Moderator
    Post count: 27815

    I will flag that question for a developer. Thanks for your patience while they look into it.

    #419536

    Richard Davies
    Buyer
    Post count: 118

    Thanks you ,

    I will await their response 🙂

    Cheers

    #419562

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Random is random 🙂 You can’t have paging and random with unique listings.
    Also random is a bad idea in most cases, it can’t be cached by the DB or by the frontend.

    Stiofan

    #419566

    Richard Davies
    Buyer
    Post count: 118

    Thanks for the reply Stiofan.

    So is there a way (sort by featured listings) can have featured first and then by most reviewed or anything else apart from random?

    We need to have paging on “sort by featured” as there will be to many listings to load per page.

    just so we can have paging like the other filters.

    #419680

    Richard Davies
    Buyer
    Post count: 118

    Any news on this?

    Sorry to pester, we have client needing this fix

    Cheers

    #419694

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    i’m not sure what you are asking, you can have paging on any sort apart from random.

    Other non standard filters can be done with filters, there are a few examples around the forum.

    Stiofan

    #419703

    Richard Davies
    Buyer
    Post count: 118

    Sorry if I am unclear.

    https://www.explore-liverpool.com/things-to-do-featured/

    This page is using the shortcode

    [gd_listings post_type=”gd_attractions” list_sort=”featured” layout=4 category=”163″]

    it is sorting by featured which is correct – BUT

    after using the pagination at the bottom, it repeats some of the non-featured listings on the second page.

    So some of the listings that are on the first page are being shown on the second page also.

    #419707

    Richard Davies
    Buyer
    Post count: 118

    This is page 2, you can see vr Liverpool is being shown twice

    #419710

    Richard Davies
    Buyer
    Post count: 118

    But its not just VR Liverpool, as I assume its random it could be any listing that is not featured.

Viewing 15 posts - 1 through 15 (of 25 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount