-
AuthorSearch Results
-
May 2, 2018 at 5:03 pm #175410
In reply to: Duplicate search results
TrevorParticipantWould you take a little look at the test page you made? I have done a little bit of work in the results.php file. Do the duplicates appear there now?
May 2, 2018 at 9:23 am #175285In reply to: Duplicate search results
TrevorParticipantI 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?
April 26, 2018 at 5:52 pm #174521In reply to: Problem with landing page results
AnonymousInactiveI’ve just replaced both results.php and results-infinite-scroll.php with the original ones. This removes custom formatting we need, but it demonstrates the results without any modifications. Could you please look at the site now and tell me what might be causing this?
https://www.fantutti.com/April 26, 2018 at 1:24 pm #174447In reply to: Problem with landing page results
TrevorParticipantYou are using the code from the results-infinite-scroll.php file and not the normal code in the results.php file?
April 11, 2018 at 9:00 pm #171682In reply to: Promoted posts?
TrevorParticipantThe standard method to solve this pagination issue is, ridiculously, to simply hide the pagination. If you were using our shortcode method, you can make custom results.php files (numbered to match the form ID), and in those you can remove the pagination entirely.
And yes, you would have to edit the results.php HTML and classes to replicate the layout that EDD uses.
April 11, 2018 at 5:48 pm #171573In reply to: Customizing the results appearance
TrevorParticipantDoes your theme have a page that displays like this, that you could copy the HTML and classes from and edit the results.php file, as per this documentation:
It might be that I would have a better solution if you could let me know what theme you are using, and if you have a link to a page with the desired layout on (not the current search page that you are making)?
April 11, 2018 at 5:11 pm #171551In reply to: Problem with landing page results
TrevorParticipantAre you using the standard infinite scroll results.php, or a custom one?
What happens if you revert to the standard one?
April 11, 2018 at 9:43 am #171426In reply to: hide results on initial page load
AnonymousInactiveI also tried what you wrote here:
https://support.searchandfilter.com/forums/topic/how-do-i-hide-initial-results/page/2/
addingif ( $query->have_posts() ) { global $searchandfilter; $sf_current_query = $searchandfilter->get(40276)->current_query(); if ($sf_current_query->is_filtered()) { ?>to the results.php file but the results are now completely hidden – on the initial page load and they are not showing after the search.
April 10, 2018 at 2:43 pm #171204In reply to: Taxonomy URL Assistance
TrevorParticipantDoes the theme have a listings archives page with their own design (not our shortcode results.php)?
What I think you should be doing is setting the Display Results method to Post Type Archive, have the taxonomy in the search form and auto detect the taxonomy from the page URL, and check the box to stay within the archives/taxonomy URLs
If you don’t want to show the taxonomy in the form, use custom css to hide it.
April 10, 2018 at 1:57 pm #171195In reply to: search results displaying above original results
TrevorParticipantHi Rena
If you revert to using a ‘standard’ results.php (either with pagination or with infinite scroll version) template, does it all work OK? Or does it still have this issue?
-
AuthorSearch Results