When i search a custom field with relevanssi search dosent display the related result which was working before.
Has it to do something that i updated the plugins?
The issue is located in the all jobs page on the menu. The View is admin all jobs.
Thank you for your help
I couldn't see why the search was failing, so I resorted to rebuilding the Relevanssi index—and that worked.
I'm not sure why it would have gotten out of synch with the data, unless you added conditions for which fields to index after some existing posts were created without rebuilding the index, but in any case that seems to be the issue.
Hello Nigel,
Yes that seems to be the issue, but still after rebuilding the index some values of that custom field are working and some are not. When inserting a new value to existing post also dosent show up. Tried this while disabling cache on browser.
Could you take a look please?
I just added a new test post on my local copy and the search worked as expected.
During testing I have most of the non-Toolset plugins disabled (except for Relevanssi and WP Bakery).
Can you try the same. It could be that another plugin is interfering with the building of the Relevanssi index in some way.
Although before you try that, rebuild the index again to see if the test post you created gets added, which would narrow the problem down to the index being updated upon saving posts.
By the way, I'm just adding Jobs in the backend. Are you doing anything different?
Yes, Im adding the CPS code custom field through a form in the content template of the post, and i can see that it dosent work that way now for some reason.
I just added some new posts frontend and backend.
If i do it on the backend like you did it shows up on the results.
Any idea why?
OK, I can reproduce this problem on a local copy of your site, but not on a fresh test site.
I've stripped back the site to the required plugins and using twentynineteen theme, with no change.
Something appears to be stopping the Relevanssi index from updating when updating the Jobs posts from the front-end, but I haven't been able to determine what.
So I'm escalating this so that my second-tier colleagues can take a closer look.