Search Results for 'results.php'

Forums › Forums › Search › Search Results for 'results.php'

Viewing 10 results – 601 through 610 (of 1,344 total)
  • Author
    Search Results
  • #175410

    Trevor
    Participant

    Would 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?

    #175285

    Trevor
    Participant

    I 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?

    #174521

    Anonymous
    Inactive

    I’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/

    #174447

    Trevor
    Participant

    You are using the code from the results-infinite-scroll.php file and not the normal code in the results.php file?

    #171682

    In reply to: Promoted posts?


    Trevor
    Participant

    The 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.

    #171573

    Trevor
    Participant

    Does 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:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results

    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)?

    #171551

    Trevor
    Participant

    Are you using the standard infinite scroll results.php, or a custom one?

    What happens if you revert to the standard one?

    #171426

    Anonymous
    Inactive

    I also tried what you wrote here:
    https://support.searchandfilter.com/forums/topic/how-do-i-hide-initial-results/page/2/
    adding

    if ( $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.

    #171204

    Trevor
    Participant

    Does 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.

    #171195

    Trevor
    Participant

    Hi 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?

Viewing 10 results – 601 through 610 (of 1,344 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.