Skip Navigation

[Resolved] Search results not including featured image (relevanssi + types CPT)

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1093676

pjF
You_searched_for_thai_-_Cayenne_Diane.png

I am trying to:
Show a featured image in search results

Link to a page where the issue can be seen:
(site not live yet)
I expected to see:
Featured image along with search result--all other post types are working.
Instead, I got:
Text results, minus featured image

#1093726

Hello,

It is possible to use Views WordPress Archive to customize the wordpress built-in search result page, see our document:
https://toolset.com/documentation/user-guides/normal-vs-archive-views/

In below screenshot, you can choose option "Search results".
hidden link

Then in section "Loop Output", you can display the feature image with shortcode [wpv-post-featured-image]
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-featured-image

#1094568

pjF
You_searched_for_thai_-_Cayenne_Diane.png
You_searched_for_thai_-_Cayenne_Diane.png

Ah! This is working great!
It wasn't obvious (to me, at least 🙂 that this could be used for search results.

I do have one additional related issue I'm not able to figure out:
The Relevanssi results shorten the Body text to the relevant area, and give em tags to the located search terms.
I did not suppress third-party filters, and I tried the Output "Inherit" option as well.
I searched through other fields, but did not find one for Relevanssi's output.
Is there a way to restore this?
Thank you!

#1094656

I assume the original question of this thread is resolved, for the new questions, please check the new thread:
https://toolset.com/forums/topic/shorten-the-body-text-to-the-relevant-area-and-give-em-tags-to-the-located-search-terms/