Skip Navigation

[Resolved] Split: Custom search with Relevanssi not covering a custom field

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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 2 years ago.

Assisted by: Waqar.

Author
Posts
#2679804

Hi Waqar,
I don't now what you did but the search box is visible. Great!

BUT

I get only search results for searching in the title of the post.
There is another custom field I need search results from: "Disease organisation".
This is a repeating field. I have also opted in "Include in search".

I changed the setting of the Custom search filter "Where to search" to "Title, body and custom fields".
I have installed Relevanssi and re-indexed. No change.

How can I adjust this?

Thanks for helping
Michel

#2679806

Hi Michel,

I've noticed that post type 'patientenvereniging' is not selected for indexing at WP Admin -> Settings -> Relevanssi -> Indexing -> Post types.
( ref: https://toolset.com/course-lesson/searching-texts-in-custom-fields-with-toolset-and-relevanssi/#including-custom-posts-in-the-search )

Please set this post type for indexing and build the index again using the same settings page.

I hope this helps and let me know how it goes.

regards,
Waqar