That data is outputted by our results.php template when using the Shortcode results display method:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/
In that documentation you can find the Customising guide. In the standard results.php template file, this is the code that you are asking about:
Found <?php echo $query->found_posts; ?> Results<br />
Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
If you wish to change (or delete it), you can.
AnonymousInactive
Hi there,
I’ve managed to customise results.php to my requirements and have managed to apply the masonry layout to my results.
I’ve had a few issues getting masonry to reinitiate after a search has taken place.
I’ve been running the code within the “sf:ajaxfinish” event as per the information at… https://searchandfilter.com/documentation/faq/
I had decided to focus on getting AJAX to work with Masonry before dealing with the search issue.
I’ve added the code here…
https://searchandfilter.com/documentation/3rd-party/post-grid/#masonry-ajax
With my_grid_id updated.
It’s causing some major display issues… https://mgg.devrap.co.uk/
Any help would be appreciated and I’m happy to provide access if need be.
Thanks,
Kirk
AnonymousInactive
Hi Trevor,
I’m using shortcodes and I can’t find the results.php file. I don’t have any p-content\plugins\search-filter\templates\results.php Actually I don’t have neither a “templates” folder.
Which could be the problem?
Thanks a lot and please let me know if you need further information
Did you try this using our shortcode method? Your code from:
<div class="row">
<div id="results">
<?php if ( $query->have_posts() ) : ?>
Could replace the code in our standard results.php, see here for customizing the results.php file:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
AnonymousInactive
Hi, i read this topic https://support.searchandfilter.com/forums/topic/hiding-category-tags-release-date-and-teaser-from-results/ and it describe exactly what I want. But I don’t have any result.php file in my filesystem. How can I find it? Or how can I solve this problem?
Thanks a lot!
AnonymousInactive
Perfect, that works. Thank you very much!
For others, the answer was to add the following lines in the results.php, which adds a “not-sf-filtered” or “sf-filtered” class:
global $searchandfilter;
$sf_current_query = $searchandfilter->get(1075)->current_query();
if (!$sf_current_query->is_filtered()) {
$is_filtered = " not-sf-filtered";
} else {
$is_filtered = " sf-filtered";
} ?>
<div class="content-width<?php echo $is_filtered;?>">
Rename the custom file for the arabic form, copy the default infinite scroll template from our plugin files, and rename that to results.php and see if the problem persists.
AnonymousInactive
yes i have custom results.php files
Do you have custom results.php files (usually using the ID number of the form, e.g 565.php) for each form, as detailed here:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
(especially the section on multiple forms)
AnonymousInactive
Hi Trevor,
Yes, I am using shortcode but it was my results.php which needed updating. Thanks for that, all fixed now.
Regards,
Victoria