Forums Forums Search Search Results for 'results.php'

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

  • 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.

    #184592

    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).

    #184431

    In reply to: Wrap output


    Trevor
    Participant

    I will take the second question last. You would need to add a second plugin to search as you want. The simplest one that I think will work is WP Extended Search, and you can set that up to search in whatever you want. If that does not work, then install the free Relevanssi plugin and set it up, see our documentation here:

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

    For editing the results.php file, see here:

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

    #184427

    In reply to: Wrap output


    Anonymous
    Inactive

    Yes, it’s the results I need to fix. I have not edited the results.php file, what you saw is what is shown without any edits. But I think I will edit the results.php, because that looks like what I wanted.

    However, I have another question: I have set the search box to search pages that I have assigned to a category (another plugin lets me do that), but when I search, I don’t always get results even though I think there should be something there. Does it search for the title of the page or does it search for the name of the category or does it search both? For example: the page title is “Brooklyn” and the category assigned is “New York”, should I see something when searching for New York? Because I don’t.

    Basically what I want is to be able to search both page title and category. And when the search results are from hits on a category, I want all the pages assigned to that category to show up.

    Thanks again,

    Axel

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