Missing and duplicated listings in archive pages

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 5 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #476286

    jotomas
    Buyer
    Post count: 802

    Hello,

    I have been testing with sorting options that previously worked correctly in GD V1.

    I used:

    Featured First.
    Package Id.
    Random.
    Alphabetically.

    In some circunstances, I noticed that there are missing and duplicated listings in paginated archive pages, but I have been unable to find the exact pattern that causes the issue.

    I checked the GD V1 clone of my site that I made before converting to GD V2 that I keep for comparisons, with the same sorting options set, and it does not show this issue.

    I tried deactivating the plugin I use for cache and optimization, Swift Performance, that was used in the GD V1 site too.

    I tried excluding archive pages from being cached by the plugin.

    By now, I just want to let you know the issue that I have found and the tests that I am doing, in case you have some advice or recommendation, since I am somewhat confused and I do not know exactly how to approach the tests to reach some more clear conclusions and I guess that I am doing something wrong.

    I look forward to your reply.

    Thank you very much for your help.

    Best regards.

    #476288

    Alex Rollin
    Moderator
    Post count: 27815

    Sorting options in V2 have been Upgraded to offer new options.
    Please review the sorting options for each CPT on your site to make sure they are as you expect.

    https://wpgeodirectory.com/docs-v2/places/sorting/#sub-sort

    If you do run into an issue please tell us about it and we will look into it.

    #476320

    jotomas
    Buyer
    Post count: 802

    Hi Alex,

    Thank you very much for your reply.

    I remember that I already had difficulties understanding sorting with GD V1, and now with GD V2 I am even more confused.

    What I would like to achieve is that the user can select one of two Sorting options:

    1) Show the listings sorted by packages and featured in alphabetical order. That is, first the featured paid listings in alphabetical order, then the non featured paid listings in alphabetical order and then the free listings (that can not be featured) in alphabetical order.

    2) Show the listings sorted by packages and featured in random order. That is, first the featured paid listings in random order, then the non featured paid listings in random order and then the free listings (that can not be featured) in random order.

    Is this possible? Is this the purpose of subsorting?

    In any case, I have doubts about how random sorting works with pagination, since then the system should remember which listings have been shown in each page to avoid showing them again in other pages and finish the pagination having shown all the listings.

    My perception about how random sorting works is that the number of pages is calculated first from the total of listings and then the pages are populated randomly in such a way that causes that some listings are shown more than once and others are not shown.

    Also, I have doubts about random order possibly conflicting with cache plugins.

    I look forward to your reply.

    Thank you very much for your help.

    Best regards.

    #476356

    Alex Rollin
    Moderator
    Post count: 27815

    1. You can sort by the package ID, yes, and then subsort a-z.
    2. By Package ID, then subsort random.

    Package ID is not the same as paid and free, though, so you could consider assigning paid listings a custom “sort order” number to put them first, or make all paid listings featured so you could sort by featured first then a-z or random.

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
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount