Tell us what you are trying to do?
On this page, hidden link I have a search with drop downs and a text search. If you text search for "Olafur" no results are found. Yet this is an artist first name as you see in the drop down above it. This page searches a CPT call Artwork and Artwork has a relationship to Artist. I've installed Relvanssi as suggested but still not getting this to work as expected. Can you please assist?
When you add text search to a View it is searching the title and contents (and possibly custom fields, if enabled) of the posts being queried by that View.
If "Olafur" doesn't belong to the posts being queried but instead belongs to a related post, then it's not possible to use it as a search term for the posts being queried.
Views doesn't support filtering by fields of related posts, and Relevanssi can't help in that regard.
You would need to create a field for the post type being queried that includes the keywords you intend users to be able to search for.
Hi Nigel! I created a custom field called "artist-name-for-searching" in the artwork CPT. I populated this field on one record,
Panoramic awareness pavilion and then rebuilt index in Relavanssi. Then emptied cache and tried to search using either of the words in that field and no results were still returned.
Can you please send me admin access details and let me review how you added the text search filter.
Please share details with what keyword I should search and what is your expected result.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
The issue was with the frontend filter you added for text search.
You have to chose the option "Title, body and custom field" for text search query filter added for text search. Please check the following screenshot:
=> hidden link