Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 1 through 10 (of 1,224 total)
  • Author
    Search Results
  • #276352

    In reply to: Custom Layouts


    Anonymous
    Inactive

    Hello,

    I understand the idea behind the plugin and the new approach but the fact that the old way does not work anymore is not really helpful.

    I had a nice custom php template for my search and filter ( that got deleted after each update hence the fact that I did not update for so long ).

    But now it does not work at all. As I’m only using a single search filter on my website I simply edited the results.php in the template folder, but the old way of creating a custom php file was really nice and easy, I don’t understand why this functionnality was removed.

    #275672

    In reply to: Showing all posts


    Trevor
    Participant

    The code in that results.php already shows the featured image, with size ‘small’ I think from memory. To remove the excerpt, there is one line outputting that, so delete it. The same goes for any other line, e.g. category, date etc.

    #275664

    In reply to: Showing all posts


    Trevor
    Participant

    We used to have an integration for Post Grid (it was relatively simple), but it no longer works. The Post Grid we have never supported.

    If you need a totally custom solution, the only way would be write your own template within our Using a Shortcode method’s results.php template, as briefly discussed here:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results

    Note, we DO support Anywhere Elementor and Dynamic Posts, the documentation is here:

    https://searchandfilter.com/documentation/3rd-party/elementor/
    https://searchandfilter.com/documentation/3rd-party/dynamic-content-elementor/

    #275575

    Anonymous
    Inactive

    Hi, I’ve just replaced our results.php with the infinite scroll one and it’s returned to the default styling but infinite scrolling isn’t working.

    I’ve created a test version of it here:
    https://poledancing-therapist.com/test-video-search/

    #275458

    Trevor
    Participant

    This will require some troubleshooting steps to be taken.

    It is very important that, even when customising the results.php template, you try to keep these class names:

    search-filter-results-list
    search-filter-result-item

    And use the basic structure that can be seen in the exemplar results-infinite-scroll.php file. Some of the commented out HTML makes me think your code started out with the results.php exemplar template instead.

    So, how to test?

    If you set aside the customised results.php file you are using (rename it), and instead use our default results-infinite-scroll.php (renamed to results.php), does the issue still happen?

    #275382

    Trevor
    Participant

    I looked at both pages, and they both use form #4261

    In our plugin, used with WPML, the form must be translated using WPML, so, editing that form in WP Admin, this + button:

    https://www.screencast.com/t/PPMXYo6NtNN

    once translated, you may need to edit the form and make sure all the settings are correct (fields, and settings within fields) for the new language.

    The Results URL will be different also, see the note about the Shortcode method at the foot of this documentation page:

    https://searchandfilter.com/documentation/3rd-party/wpml/

    Note, if you are using the Shortcode method and a customised results.php template, the template may need to change (to translate some strings for example), and as each form has its own ID, use the numbering method described almost at the end of this documentation page:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/

    #275195

    Trevor
    Participant

    The form itself is set to the ‘Shortcode’ display results method, as you show here is this screenshot:

    https://prnt.sc/y49e7t

    You must be using the results.php template file. Let me explain.

    In this screenshot:

    https://prnt.sc/y0fzp5

    You show on line 141 that you are calling the ‘results’ for the form with that shortcode.

    So, the page is using the tpl-vacatures.php template, but that shortcode then includes in to the page the results.php file.

    The results that appear on the page, and the infinite scroll loop, are coded in that results.php template file, which should be in a search-filter folder in your child theme folder.

    #275186

    Anonymous
    Inactive

    Hi Trevor,

    No, i don’t use results.php file to display my results.
    I display all my results with the S&F results shortcode, in a page with specific template > tpl-vacatures.php .
    Here’s the entire template, including filter shortodes (search form shortcode and results shorcode) > https://www.codepile.net/pile/7YgDrapv
    Then i set up the search form to display results using shortcodes in this page > https://www.haldugroep.nl/vacatures/
    https://prnt.sc/y49e7t

    I followed the shortcodes setup instruction to set it up correctly. Effectively results are loaded on my page.
    Hope i didn’t miss anything…

    #275108

    Trevor
    Participant

    But you have customised the results.php file, yes? Can you share that customised file with me? IF you post the content directly here, please post any code inside code ticks (one before the code, one after)? On my UK Windows keyboard, the code tick key is next to the 1 key in the standard part of the keyboard. If you do this Google search and look at the images, they show various keyboards and where the key is located:

    https://www.google.com/search?q=back+tick+code+key

    Alternatively, you could share the file with me via a file sharing site.

    #274944

    Trevor
    Participant

    As a test, if you set aside the customised results.php file you are using, and instead use our default results-infinite-scroll.php (renamed to results.php), does the issue still happen?

    I am wondering if it is the structure of the HTML of your customised version that is the issue.

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