Search Results for 'results.php'

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

Viewing 10 results – 521 through 530 (of 1,344 total)
  • Author
    Search Results
  • #185922

    Anonymous
    Inactive

    Hey Trevor,
    Thanks first of all.
    The site is: http://devcenter.pt/aptcci/directorio-de-psicoterapeutas/
    In the template I changed the_excerpt(); for the_content(); at /templates/results.php
    Thanks bro

    #185878

    Anonymous
    Inactive

    Hi – yes, using standard shortcodes – so, I need to edit the results.php template as above to make it work as we need do I?

    #185868

    Trevor
    Participant

    If you are using the Shortcode results method, and our results.php template file, it would look like this:

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(1024)->current_query();
    if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) {
      echo '<div>Nothing to see here folks!</div>'; 
    } else {
      // your template archive code/loop OR results.php code here
    }

    Change 1024 to the ID number of your form (from the form shortcode).


    Trevor
    Participant

    You are using our shortcode display results method? That uses a partial template which slots into your page.php template (and that template calls the header, footer etc, so your template, if that is what you are using for the results.php file, has too much in it. Compare it to our standard results.php exemplar (in the templates folder of the plugin).


    Anonymous
    Inactive

    Hi!

    I’m currently displaying my custom form and search results using the WPBakery Add-on, specifically with the “Post Masonry Grid” module on this webpage.

    Since I’ll be displaying a good amount of items and I can’t get AJAX to work, I opted for pagination, showing 15 items at a time (selected under the S&F “General” settings, having the “WordPress pagination” option selected on the “Post Masonry Grid” WPBakery add-on).

    I realized that my default pagination is a bit lacking, so I installed WP-PageNavi. Following the plugin’s instructions to find and replace the necessary code (at “search-filter-pro/templates/results.php”), I saw example code to support WP-PageNavi already inserted.

    The output from WP-PageNavi wasn’t appearing, so I tried following WP-PageNavi’s instructions to the tee, replacing code as specified, but still, the default pagination is displayed.

    Hoping to see if you might have suggestions or guidance here. Thinking it might be because I’m targeting the wrong code to replace.

    Thanks!

    Jameson

    #185562

    Trevor
    Participant

    Not necessarily, it simply indicates that either the theme or a plugin is modifying the query after our filter has been applied, but using the shortcode method usually overcomes this, more so if it is the theme doing this, which is what I had initially though was the case.

    You can make the results look much like they do using the theme template on a page. To do this, follow the Customising the Results documentation.

    When editing the results.php file, you can see the section that displays the post loop (inside the While … if posts). You can replace this with your theme template loop. That might just work.


    Trevor
    Participant

    You should follow the Customising the Results documentation.

    When editing the results.php file, you can see the section that displays the post loop (inside the While … if posts). You can replace this with your theme template loop.

    #185099

    Trevor
    Participant

    You could make the filters update dynamically to (in the main) prevent a no results search. This is done by going to the General settings tab:

    Set Auto Count (both settings) to ON

    And then in the Form UI:

    In each field set Hide Empty to ON

    If you are using our Shortcode method, you should follow the Customising the Results documentation.

    When editing the results.php file, you can see the section that displays no results found. You can replace this, or indeed add code there to cause the page to re-direct (you would need to Google how to do that).

    If you are using any other Display Results method, then they will be using your theme templates, in which the functionality you seek is dependent on your them.

    #184997

    In reply to: No items found


    Trevor
    Participant

    You could make the filters update dynamically to (in the main) prevent a no results search. This is done by going to the General settings tab:

    Set Auto Count (both settings) to ON

    And then in the Form UI:

    In each field set Hide Empty to ON

    If you are using our Shortcode method, you should follow the Customising the Results documentation.

    When editing the results.php file, you can see the section that displays no results found. You can replace this, or indeed add code there to cause the page to re-direct (you would need to Google how to do that).

    #184739

    In reply to: Problem Updating


    Trevor
    Participant

    In your server files, in the Avada child folder, you have a sub-folder called search-filter and in that our results.php template. The file is empty. It needs to have the template code in it (see the copy in our plugin folder, in a sub folder called templates.

Viewing 10 results – 521 through 530 (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.