Forums › Forums › Search & Filter Pro › Excerpt not displaying in results
Tagged: excerpt
- This topic has 5 replies, 2 voices, and was last updated 7 years, 6 months ago by Trevor.
-
Anonymous(Private) April 27, 2017 at 2:51 pm #105249
Hi,
I’m using a custom results template displayed via shortcode. Everything is working great except that the get_excerpt function is pulling the first bit of text from the page rather than the excerpt, even when the post has an excerpt.
Example:
https://restaurants.charlottesville.guide/search-results/?_sf_s=revolutionary
This results page returns two results. Revolutionary Soup – The Corner has an excerpt added. It just says “This is an excerpt.” Revolutionary Soup – Downtown does not. As you can see both posts are pulling the text from the post not the excerpt.
I was under the impression that the get_excerpt function would look for an excerpt and only pull text from the post if one didn’t exist.
Trevor(Private) May 4, 2017 at 5:06 pm #106525OK. The function name you used was wrong. I have corrected this for you. However, it is only pulling text from the excerpt box because Divi builder content only appears if you use a divi grid builder. Hence why we worked to make a way you could use Search & Filter with the Divi Grid builder. See this post for how:
https://support.searchandfilter.com/forums/topic/divi-blog-module-grid/#post-99184
Hopefully you can follow that. Don’t really worry about setting the grid or grid source up, as our filter form settings will take over and these settings will be used instead.
Also, I have installed a later version of our plugin, as the one you had has an issue with Toolset Types.
-
AuthorPosts