Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 541 through 550 (of 1,224 total)
  • Author
    Search Results
  • #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?

    #170956

    Trevor
    Participant

    I assume you mean that you are using the Shortcode Display Results method. Did you follow the Customising the Results documentation (so you have your own copy of the results.php file)?

    If you did not, please do so. Edit the child theme copy of the results.php file to remove these lines (63-65):

    <p><?php the_category(); ?></p>
    <p><?php the_tags(); ?></p>
    <p><small><?php the_date(); ?></small></p>

    These 3 lines are for:

    Category
    Tags
    Date

    #170683

    Trevor
    Participant

    Ah, no. However, I think what you want is for it to look like the home page?

    It will be necessary to custom code the results.php

    I will pick this up tomorrow.

Viewing 10 results - 541 through 550 (of 1,224 total)