Skip Navigation

[Resolved] Search functions with Relevanssi.

This support ticket is created 4 years, 6 months 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.

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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 4 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1728747

I have a post title and a repeatable group with a single an multi line (essentially a bullet point and content for the bullet point).

When I do a search for the bullet point, it pops up on the search as a link however it goes back to the home page. Is there a way to have the field groups for my post link to the post in the search?

#1729021

Hello,

It seems to be broken HTML link issue, how do you setup the "pops up on the search as a link" in Relevanssi search result?
With custom codes or other plugins? please provide detail steps to duplicate the same problem, and share a live problem URL where we can see the problem:
it pops up on the search as a link however it goes back to the home page

#1729027

I think it’s related to this article. https://toolset.com/forums/topic/repeatable-group-field-in-relevanssi-search/.

And rfg fields not really being searchable.

The child field link just doesn’t direct anywhere because there’s no single page view for children posts which makes it go back to my homepage.

Any thoughts?

No broken links. It’s brand new tested site with nothing but this post.

#1729119

Thank for the details, I can see the problem in my localhost, the problem is:
Toolset Repeatable Field Groups is based on one-to-many relationship, so each item of Toolset Repeatable Field Group is also a post, but the "Repeatable Field Group" post type is hidden from front-end, the "query_var" and "publicly_queryable" parameter values are set to "false", so it conducts the problem you mentioned above:
it pops up on the search as a link however it goes back to the home page.

See WP document:
https://developer.wordpress.org/reference/functions/register_post_type/
'query_var'
(string|bool) Sets the query_var key for this post type.
'publicly_queryable'
(bool) Whether queries can be performed on the front end for the post type as part of parse_request().

In my localhost, the single "Repeatable Field Group" post, display home page content in front-end.

So in your case, you might consider to use one-to-many relationship instead of Repeatable Field Groups, so you can expose the child posts publicly in front-end and relevanssi search result.