AnonymousInactive
Hi Trevor.
I did that but after that I need to get the datas I don’t have in Post Grid that I have into Staff Grid.
I also tried the Shortcode option and tried to modify results.php into my parent theme by copying some code from Staff template but it’s not working, my Php knowledge is not enough.
Do you think there is a way to link S&F Pro to Staff Grid instead of Post Grid ?
Thank you for your help.
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.
I cannot see a way to do this, so you would need to create a form for each page, and rename the results.php files to match the form numbers. So, on the current page in discussion, the form ID is 2321 so the results file for that is 2321.php
AnonymousInactive
OK, thanks Trevor. But I think this doesn’t resolves my needs. I get results.php in diferents pages, how can we get that ID dynamicly?
In order to create the grid that I see, did you already edit the results.php in accordance with the guide for customization here (making a new folder, etc)?
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
Yes, you edit the results.php file, as the thread I linked to suggests. It is a simple edit.
AnonymousInactive
Note: site is on client staging server and locked, showing URLs to illustrate primary S&F page and secondary (post search/filter) pages referring to in my notes below.
Updated results page to show the_content() rather than the_excerpt(). On the page, before search or filter, all installations show and function properly (including layout and lightbox feature on small image gallery). (http://omgkmg.wpengine.com/dsi-installations-worldwide/ –> page S&F is on, everything for the_content() in the results.php file works great.)
Once you filter or search, on any secondary page, the lightbox feature, shortcodes, and other styling does not work. (http://omgkmg.wpengine.com/dsi-installations-worldwide/?_sfm_conveying_rate_stph=35+661&_sfm_belt_width_inches=24+63&_sfm_belt_speed_fpm=207+689&_sfm_length_feet=54+188&_sfm_drive_power_hp=10+60 –> page URL after any search/filter feature, where all the_content() is invalid).
Is this an issue that can be resolved, or you can ONLY use the_excerpt() when using the shortcode to implement S&F on a page?
Thanks!
AnonymousInactive
Here is the code that I added to the results.php file:
<div>
<h2>“><?php the_title(); ?></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>
<p><?php get_the_ID(); ?></p>
</div>
However, it still is not displaying the taxonomies.
If you are using our shortcode display results method, it uses our exemplar template – results.php. The basic steps for customising the file are set here, but you would need to do the coding:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
This is a good answer on how to show the terms:
https://wordpress.stackexchange.com/questions/10175/how-to-display-custom-taxonomies-in-posts
But, where they use $post->ID
, use instead get_the_ID()
AnonymousInactive
Hi I’m using the results.php template for the search results. The pagination seems to be not working. I use the default pagination values on the ajax pagination (pagination type: normal pagination selector: .pagination a).
Here is the link to the dev site. http://tempijserman.com.74-116-115-253.osiriscomm.com/additional-searches/