[Resolved] Searching keywords from repeating field group is not working
This thread is resolved. Here is a description of the problem and solution.
Problem: I would like to be able to use text search to find posts using information stored in repeatable field groups. However, when I add RFGs to the index I see links in the search results that point to an invalid post. I would like to link to the post containing the RFG.
Solution: Add the repeatable field group to the search index, then use a WordPress Archive to display the search results. Use conditional HTML in the archive to determine if the link is for a RFG post type, and display a link to the parent post instead. Something like this:
This support ticket is created 6 years 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to search keywords from repeating fields groups that I have placed on my pages. However, each result links me to the home page instead of the page that contains the repeating field group.
While I can see the search results appear when I search for a certain phrase/word, but the link of the post is leading me to something similar as below:
DOMAIN.COM/custom-post-section/rfg-6/
The custom-post-section being the RFG slug and when I click on it, it just redirects me to the homepage.
Sorry for the late reply, below is the link for my website hidden link
For first example,
You may try it out by searching the keyword 'bathroom' on the burger menu and the search result that came up with the post link are still including the repeating field group url. This is using repeating field group.
For second example,
You may refer to this link hidden link
The text 'honed' is generated using regular custom field, but when i search the keyword 'honed', the search result shows no result.
I was able to log in and test the issue. However for me to report this to our development team for further debugging I would need to take a copy of the site to test here locally.
Would you mind if I took a copy of this site using the duplicator plugin ?