Forums › Forums › Search & Filter Pro › Duplicate search results
Tagged: duplicates
- This topic has 17 replies, 3 voices, and was last updated 6 years, 6 months ago by Anonymous.
-
Anonymous(Private) May 1, 2018 at 1:21 am #175047
I’m having the same issue reported by some other here – duplicate search results on a second page. Here is an example:
https://yogacollective.staging.wpengine.com/search/?_sft_teachers=travis-eliot
1. Tried with and without ajax, same issue
2. Using archive.php display method. Everything else seems to be working fine and rebuilt cache
3. Confirmed that only one of each post is actually added to admin. RAND is not being used.Settings screenshots:
https://cl.ly/rH7A
https://cl.ly/rHP4
https://cl.ly/rFsb
https://cl.ly/rGhuTrevor(Private) May 1, 2018 at 7:35 am #175056The first testing step needed is to create a duplicate (test) search using the shortcode method, and follow the documentation for making this found here (which will need a new test page with just the two shortcodes on it):
https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
Make sure that Auto Count is ON and Show Count is on for each field (makes it easier to troubleshoot).
Don’t worry about the appearance for now this is just to see if the same issue is apparent.
Anonymous(Private) May 1, 2018 at 4:46 pm #175141It appears that the shortcode method is not producing the same duplicate issue:
https://yogacollective.staging.wpengine.com/test-search-page
I don’t think the shortcode method will really work for us however, as we need to take advantage of taxonomy archives (both the URL structure and term meta that we can utilize). Example:
https://yogacollective.staging.wpengine.com/classes/class-types/move/
Is the same search form as:
Trevor(Private) May 2, 2018 at 9:23 am #175285I have narrowed it down to the way your theme is getting the posts. I suspect it is modifying the posts after the wp_query is run, probably using pre_get_posts.
I do not have full access to your server, but need to explore the shortcode method a bit more. Can you follow the customising guide here, so that there is a copy of the results.php in a search-filter sub-folder of your YC2017 theme folder?
-
AuthorPosts