Hi
Great to speak with Andrew on Skype. The issue was that your results.php was missing the necessary code to do the pagination correctly, and I think that is now fixed.
If it is, can you let me know so I can close this thread?
Great to speak with you on Skype. We fixed the way you were calling the query in results.php and looked at the way the sliders were not working, leaving you to troubleshoot that plot width slider. If you can get back to me on whether this has now resolved your issues fully?
OK, if you have followed the documentation to make a copy of the results.php into a new folder called search-filter in your child theme or theme folder, then replace the contents of that template file with this (change the number 255 for the ID number of your search form and change the line echo '<div>Nothing to see here folks!</div>'; for whatever you want before the filter is used instead of the results – or remove for nothing at all):
<?php
/**
* Search & Filter Pro
*
* Sample Results Template
*
* @package Search_Filter
* @author Ross Morsali
* @link http://www.designsandcode.com/
* @copyright 2015 Designs & Code
*
* Note: these templates are not full page templates, rather
* just an encaspulation of the your results loop which should
* be inserted in to other pages by using a shortcode - think
* of it as a template part
*
* This template is an absolute base example showing you what
* you can do, for more customisation see the WordPress docs
* and using template tags -
*
* http://codex.wordpress.org/Template_Tags
*
*/
global $searchandfilter;
$sf_current_query = $searchandfilter->get(255)->current_query();
if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) {
echo '<div>Nothing to see here folks!</div>';
} else {
if ( $query->have_posts() )
{
?>
Found <?php echo $query->found_posts; ?> Results<br />
Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
<div class="pagination">
<div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div>
<div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div>
<?php
/* example code for using the wp_pagenavi plugin */
if (function_exists('wp_pagenavi'))
{
echo "<br />";
wp_pagenavi( array( 'query' => $query ) );
}
?>
</div>
<?php
while ($query->have_posts())
{
$query->the_post();
?>
<div>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p><br /><?php the_excerpt(); ?></p>
<?php
if ( has_post_thumbnail() ) {
echo '<p>';
the_post_thumbnail("small");
echo '</p>';
}
?>
<p><?php the_category(); ?></p>
<p><?php the_tags(); ?></p>
<p><small><?php the_date(); ?></small></p>
</div>
<hr />
<?php
}
?>
Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
<div class="pagination">
<div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div>
<div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div>
<?php
/* example code for using the wp_pagenavi plugin */
if (function_exists('wp_pagenavi'))
{
echo "<br />";
wp_pagenavi( array( 'query' => $query ) );
}
?>
</div>
<?php
}
else
{
echo "No Results Found";
}
}
?>
The link I gave to our documentation shows how to copy the results.php to your theme or child theme folder so that any changes you make are retained. Just keep backups as you go. It looks like it is working, yes?
AnonymousInactive
Hi Trevor, thanks once again for your reply.
Setting form as a shortcode I finally get what I need, I think…
You can see results here now: http://ww2.livinginvicenza.com/v1/events/
Can you confirm that it works now?
Last question about styling results:
as you can see from the attached screenshot, is it possible for you to add a class to the div that includes post’s details? I am afraid if I will edit results.php I will loose any change with updates. Any functions.php tweak? Any hint?

I created a new topic for you. The new topic function is at the bottom of the main support page:
https://support.searchandfilter.com/forums/forum/search-filter-pro/support/
FYI
The shortcode method and custmising it is explained here.
Once you have your own copy of the results.php template file, it needs to be edited so that it makes results similar to your theme. It depends how complex your desired outcome is as to how hard it would be re-create. If you search for avada results.php you might find examples here in the forum.
Hi Julien
Trevor is correct, you will need multiple IDs for your results.
I am planning to allow results templates to simply be named according to their slug – which means you can have 1 filename for all..
For now, you could create a “1.php”, “2.php” etc, and have all of them `include ‘main-results.php’ so you only have to maintain the 1 file once you’ve setup the IDs.
BTW, we had some WPML compatibility issues (with their latest update) that I’ve just fixed, I emailed you a copy.
Thanks
AnonymousInactive
Hi,
I have 2 kind of searchs:
– Videos
– Whitepapers
For each search, I have 4 languages. So in total I have 8 search shortcodes, and 8 differents ids (one per language, for both searchs).
I used WMPL instructions to make the translation, it worked perfectly.
My problem :
For all 4 videos search results, I want to use the same custom results.php, and same thing for Whitepapers. If I followed the instruction “Customising the Results”(here : https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/), I will have 8 php files, one for each form. It’s pity because I will have duplicated php files, the only difference will be the name of the php file ([id of search].php).
Is there any way to use one custom result php file for multiple searchs ?
Thank you for your answer 🙂
So, there are many ways you can set up the plugin to work with WooCommerce. The simplest is the WooCommerce Display Results method, but this will always re-direct to the shop page.
The As an Archive method will also work, provided you can provide a template file for it to use.
The Shortcode method will also work, but you must use a copy of our results.php template, modified as you wish, as documented here.
I would need to see what you are trying to do to be able to help you. You can use a private reply if you don’t want others to see your reply.
OK, I can see your site uses Masonry. It seems to load the script on all pages, so that should make it easier.
It uses this command to initialize masonry on the page:
hb_masonry();
So if we need to, we can hook into that. Otherwise it looks like all we need to do is add some code to the results.php file.
Where are you located? NYC? Do you have Skype, in which case we can do this together over skype share screen?