AnonymousInactive
Hi. I´m in the first steps of setting up the plugin and I have some issues. I´m using Avada Theme and Woocommerce, and I need Search&Filter to search for products. I´m trying to create a simple search form that displays the results using shortcodes. I´m not sure if I can use grid view of my theme to show results (I guess I need to create a results.php file in my Child Theme) but the first problem I have is pagination doesn´t work. If I make a simple search, I get the first pagination page but can go to the second page using “older posts” link. It always loads the first results, even on infinite scroll view. Can you please take a look? Thanks!!!
http://www.tienda.cepeonline.es/formacion-2/
We do not have code to make a column/grid for you in the shortcode method.
You can follow the Customising the Results documentation (so you have your own copy of the results.php file). The you can edit/customize the file as you wish.
It IS possible to add code from your own theme that would make a grid, if your theme has such code visible on other pages so that you can inspect it to copy it.
Did you follow the Customising the Results documentation (so you have your own copy of the results.php file), and did you do any customisation to the file (as by default it has a ‘No Results Found’ message)?
AnonymousInactive
Hello Trevor and thanks for your support!
This did not worked as i ‘d like but i manage to change the results.php file and get what i nedd as a result.
Once again thanks!
AnonymousInactive
I have chosen the display results method “As Archive” with a custom template (results.php), which is working pretty well. I’ve also placed my custom template code on the various archive/taxonomy pages so they all have the same look and I can use the filters there as well, which is mostly working well.
I am not sure if having the same basic code in my taxonomy and archive templates as I do in my custom results template is the best approach but it was the only way I could see to make this work. Am I going about this the right way?
For example, I have a custom taxonomy called “type”. I have the same code on my taxonomy-type.php as I do on my results.php template so that if I use the filtering I see the same thing as if I click on an archive link for that taxonomy. So
domain.com/type
looks the same as
domain.com/results/?_sft_type=blog
I’d really like to use the pretty url and I am also concerned about having duplicate content issues, so I am wondering how to get the urls to match when filtering. I see in your Modify URLs section, you can use sf_results_url but it states this is mainly for changing protocol and that there can be unexpected results. Would using this method work here or if you would suggest another method?
My guess is that you are using the shortcode display results method? If os, follow this customising guide:
https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results
And edit the local theme folder copy of results.php and find and remove this:
Found <?php echo $query->found_posts; ?> Results<br />
Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
At the top (on the original file at lines 29 and 30.
And also this line towards the bottom (line 73):
Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
You may need to figure where those parts of the page came from (a plugin or hand coding), and fix them.
Not connected with the above, I see that you are using our shortcode method of displaying results. Did you edit the results.php file, or leave it as standard?
You might better off (it will be much easier) using the Shortcode Display Results method. If you follow the customisation guidance, you can edit the results.php file that we provide. See the documentation here:
https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
AnonymousInactive
Cheers Trevor. After you pointing me in the right direction I hound a no-results.php page in my theme that is causing this.
Ajax only updates part of your page. Anything inside the container that it updates will change, but you may have inserted the count outside that container. In the shortcode method, what is inside results.php gets refreshed, what is outside does not.