keithfarmer
Forum Replies Created
-
I have this issue also. Di you manage to find a solution?
Thanks
KeithHi Mikko
I have feedback on this from Search & Filter Pro and the reason is that though they support some parts of Relevanssi they do not support excerpt snippets. Sorry to waste your time. I though Relevanssi support meant just that. oops. It is now raised onto the wish list. So hopefully it might happen some day.
In the meantime, I am scratching my head as where to go now.
Keith
Hi Mikko
With theme search the printout is
string(5) “brick”With the Search & Filter search it comes out as normal. No highlighting and no string count.
Best regards
Keith
Further to the above: the genaric theme search produced results with the relevanssi_the_excerpt() code but not the custom form.
Best regards
Keith
Hi Mikko
ThanksI tried this and the function produces no output in place of the truncate_post( 270 ); or the_excerpt()
I appreciate your help on this and I’m happy to upgrade to your pro version if it will help?
Best regards
Keith
Hi Mikko
Many thanks for responding to this.
It turned out that the normal theme default search was happily showing the highlighted excerpts, and responding as expected.The file it uses, search.php, doesn’t use the_excerpts(), but instead uses truncate_post( 270 ); but as I said it works fine with the default search.
Link here https://pastebin.com/2vsk23j2I replaced truncate() with the_excerpts() and it worked just the same in the default search and from the Search & Filter Pro. ie it worked fine in the default search and not in the Search & Filter Pro search.
So in Search & Filter Pro I set the display search results to use the same file as WordPress is using search.php, in my child theme folder to display results, but weirdly it doesn’t show the highlighted excerpts when called from the custom form.
Development website here
https://www.test.fresh-interactive.co.uk/publications/advanced-search/
(The form is Search & Filter Pro, the default search is top right)I guess that the default search and the Search & Filter Pro are somehow calling the file differently or that parameters are different?
The custom form calls search like this where brick is the search term
https://www.test.fresh-interactive.co.uk/?sfid=736&_sf_s=brickDeafult search calls it like this
https://www.test.fresh-interactive.co.uk/?s=brickAny ideas? Stuck here and it’s the core of the site!
Many thanks
Keith