Forums Forums Search Search Results for 'results.php'

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

    Trevor
    Participant

    If you are referring to the Shortcode display results method, the exemplar results.php template a file (and the equivalent infinite scroll version) use standard WordPress Codex coding, and so there is nothing constructive we can add to our documentation that is not already said in that Codex, or in many third party blog posts about creating archive template pages.

    #225999

    Trevor
    Participant

    Using the Shortcode method, you can edit the results.php file. See this post:

    https://support.searchandfilter.com/forums/topic/how-to-have-results-only-show-when-search-form-is-used/#post-211969

    #225303

    Trevor
    Participant

    All looks OK from what I can see, other than it has the wrong URL on the pagination. The one thing I can see is the template for that page.

    I assume you are using custom results.php files, so can you upload the one for this page to a file sharing site and share the download link for that with me?


    Anonymous
    Inactive

    I put it in the loop in the results.php file…

    Image ‘0’ in the files shared below has the action highlighted.

    1mage ‘1’ has the ‘add to wishlist’ button being rendered as expected on the front end. when loading the page using the results.php file to list the custom posts. However when I select a checkbox in the search form, the result are filtered by ajax, and those results no longer have the add to wishlist button on them..that is shown in image’2′

    https://we.tl/t-z5fQjla7Ik

    https://wordpress-256456-1039656.cloudwaysapps.com/

    #224982

    Trevor
    Participant

    One problem that I can see is that you have customised the results.php file, but both forms are set to use Infinite Scroll, and I think you customised the standard results.php content.

    In the plugin/templates folder you will find an infinite scroll version. You need to use the contents of that instead, but the file must still be named results.php

    I am far from sure that is the problem, but that does need fixing first. Note the names of the divs in that file. If you change them (search-filter-results-list and search-filter-results-list), you must complete the fields in the form settings with what you have used.

    #224261

    In reply to: Problem with Counter


    Trevor
    Participant

    Something very odd is happening. The form is set to use Infinite Scroll, see here:

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

    So the results should not show pagination. Then I had an idea.

    In the plugins/search-filter-pro folder are two templates. Both are examples. To use them, you need to follow the customising guide here:

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

    You will need to make a new folder, search-filter (NO -pro) and place in that the version of the file you need. For infinite scroll, you must copy the results-infinite-scroll.php file to that new folder in your theme folder, then rename it to results.php

    Otherwise, the infinite scroll will not work.

    Unless you want to use normal pagination?

    #224232

    Trevor
    Participant

    In the standard results.php template that the shortcode method uses, it shows the results count. Is this what you meant that you want, or have you deleted that part of the template PHP?

    #224209

    Trevor
    Participant

    Are you using the Shortcode method? If so, you need to follow the customising guide here:

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

    And use the numbering the filename option instead of a generic results.php file, and then you can translate those strings directly in the specific language versions. Each language will have its own form with its own ID number that you use.

    #224152

    Trevor
    Participant

    It can be included in the results.php file, yes.

    What they appear to be saying is, ask us, Search & Filter, for how to use a script in their theme? If so, that would tend to suggest that they have used someone else’s code.

    Looking through what is loaded, I figured it was in the file:

    https://socodevi.flywheelsites.com/wp-content/themes/ave/assets/vendors/jquery-ui/jquery-ui.min.js

    But that file is minified, and, I think, a combination of many jQuery widgets.

    #224146

    Anonymous
    Inactive

    Here’s what the theme author replied: Could you ask them for the fix? Unfortunately, 3rd party plugin support doesn’t include with the support according to Envato policy.

    For your code snippet, do I have to insert in my results.php?

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