Forums Forums Search Search Results for 'results.php'

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

    In reply to: Custom page template


    Anonymous
    Inactive

    Thank you again Trevor. I realise that probably should be obvious, although my page.php has a whole lot of other stuff in the section ID=content which clearly doesn’t get replaced by the results.php but now I see it’s specifically the_content which gets replaced, hopefully I can work around that.

    Incidentally, I am well aware that my confusion here is not caused so much by your plugin as the (in my opinion) unnecessarily complicated theme I am stuck with… but understanding exactly how S&F works does at least help me to work out the best way to tackle a solution.

    #224121

    In reply to: Custom page template


    Anonymous
    Inactive

    Thank you Trevor and I’ll bear that in mind, although I don’t think there is a pre_get_posts running the basic page template.

    What I’m still trying to understand however, is what part of the page.php template is replaced/overwritten by the results.php in the search-filter folder (when using a shortcode)?

    #223989

    Anonymous
    Inactive

    Unfortunately not! My colleague told me I will have to make a thorough search to find that Javascript and copy it in my results.php file to solve the problem. Is there any other easier way?

    #223735

    Trevor
    Participant

    Hi

    The folder that you have placed the results.php file you have named:

    seach-filter

    You have missed the r:

    search-filter

    #223268

    Anonymous
    Inactive

    Hi again,

    (I bought a new license of the plugin since for the previous one you indicated that the support period had ended. The user with whom I wrote you what I ask you below was “Pedro Vega”, but I have decided to create a new user for this new license.)

    I am selecting products and variations in my configuration . My search engine is composed of a text box and taxonomies to add the variations. The result is shown in “Woocommerce shop”, therefore, I don’t use results.php at any time.

    Would it be possible that when loading the search engine, no results would appear until clicking on the submit button?

    I have verified in the forum that this is possible if we use the page “results.php” but in my case it is not so, since the results are shown on the same page on which the form is loaded.

    Thank you.

    #223060

    Anonymous
    Inactive

    Hi,

    I am selecting products and variations in my configuration . My search engine is composed of a text box and taxonomies to add the variations. The result is shown in “Woocommerce shop”, therefore, I don’t use results.php at any time.

    Would it be possible that when loading the search engine, no results would appear until clicking on the submit button?

    I have verified in the forum that this is possible if we use the page “results.php” but in my case it is not so, since the results are shown on the same page on which the form is loaded.

    Thank you.

    #223057

    Anonymous
    Inactive

    Hello,

    I have a 404 problem with the search engine.
    The configuration is as follows:

    I have selected products and variations. In the search engine I have entered a text box and two taxonomies for the product variables. The results are shown on the same page (Woocommerce shop), that is, I don’t use results.php.

    If I perform a search through taxonomies, the search engine works perfectly, but if I use the text box, it always throws me an error 404. In the text box I enter the name of one of the products but also, error 404 is reproduce. I do not know what can be due.

    Could you help me with this problem?

    Thank you.

    #222887

    Trevor
    Participant

    The only way you could do this would be to use our Shortcode method, and then re-code the exemplar results.php template file to suit your needs, per this documentation:

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

    You can pretty much edit all the HTML structure as long as you keep the If and While structure in place.

    #222881

    In reply to: Shortcode or Custom


    Trevor
    Participant

    The custom method relies on the template (usually a theme template, but can often be a page builder plugin) in use having an argument passed to its wp_query function to use the filters. The shortcode method relies on using the results.php template file and no arguement needs to be passed to it.

    #222873

    In reply to: Shortcode or Custom


    Anonymous
    Inactive

    Ah thank you but no I’m fine digging into the PHP so that’s not an issue. I was really just trying to work out when it’s more appropriate to use the shortcode method (using/editing results.php) and when it’s more relevant to use the custom method.

    If I’m understanding correctly, they’re really just two slightly different means to a similar end?

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