We have a website that we've taken over. There is a custom post type called "projects".
If we do a search using the term "learning" on the frontend
, the results do not show a project with the title "Caulfield Grammar School, Masterplan & Learning Project" even though the term "learning" is in the title. Yet if we search using the term "Caulfield" it appears in the search results.
The site is running the Relevanssi and even with it disabled that search result does not appear. Any ideas would be greatly appreciated.
Thanks in advance.
That has kind of worked but there are other post types which it will need to show the results of so I changed the code to this:
That has worked but it isn't showing the 'Caulfield Grammar School, Masterplan & Learning Project' now.
Please try below code in functions.php