Skip Navigation

[Resolved] Views custom search results showing duplicate result items across pages

This support ticket is created 4 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 4 years, 4 months ago.

Assisted by: Waqar.

Author
Posts
#1397379

Rob

I am trying to:
On our property list site, specifically the 'our-properties' page, we have a custom search via Views, that also integrates with Google Maps for a distance search. Everything works fine, the distance search, other filters, etc. and the paging is OK to a point, but it's displaying a weird duplicate search result across pages.

For example, you can leave all the filters as their defaults and then just page through the results on the page. Some properties are displayed across different pages. For example, one property might display at the end of page 4, but also at the start of page 5

The initial search is listing the post type of 'properties' in a descending price order; price also pulling from a custom field.

Link to a page where the issue can be seen:
hidden link

I expected to see:
Distinct pages of unique, non-duplicated results.

Instead, I got:
Pages with some overlapping properties -- e.g. a property at the end of page 2 is also shown at the start of page 3

#1397631

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Rob,

Thank you for contacting us and I'd be happy to assist.

I noticed that there are some property posts that have the exact same words in their titles, which is why it seems that they are repeating.

Examples:

Ackworth Road:
yoursite.com/staging/wp-admin/post.php?post=1774&action=edit
yoursite.com/staging/wp-admin/post.php?post=1335&action=edit
yoursite.com/staging/wp-admin/post.php?post=1336&action=edit

Estcourt Road:
yoursite.com/staging/wp-admin/post.php?post=1879&action=edit
yoursite.com/staging/wp-admin/post.php?post=1788&action=edit
yoursite.com/staging/wp-admin/post.php?post=1341&action=edit

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.