Skip Navigation

[Resolved] Repeatable group search not working

This support ticket is created 2 years, 3 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by fahimS-2 2 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2601749

I created a custom post type and a custom field group. In the field group I added a repeatable group and added checkboxes there. Then in the custom post archive I added the checkbox as search field in the search from. But the search with the checkbox is not producing any result.

You can check it here: hidden link

How can I fix it?

#2601927

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

When you add repeating field group internally it is managed as one-to-many post relationship. For the custom search - you can add the frontend custom filed filter for the post type you set your view to query. You can not filter post type archive using the fields of repeating field group.

#2601937

Thanks for your answer.

So basically it is not possible to create a search with custom repeating fields. Is it what you want to say?

Also I couldn't understand this line "you can add the frontend custom filed filter for the post type you set your view to query", can you kindly explain it to me.

#2601947

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

So basically it is not possible to create a search with custom repeating fields. Is it what you want to say?
==>
You can create custom search for repeating field group using view when you set your view to query the repeating field group but not the archive.

For instance you have post type Events and repeating field group "attendee-information" having fields (attendee-name, email, desc).

So, if you want to create a custom search view using the field belongs to repeating field group (attendee-name) then you will have to set your view to query the repeating field group "attendee-information" as the field is belongs to repeating field group not the event post type.

So basically, you can create custom search view using the custom field filter for the fields that is belongs to post type you set your view to query.

#2602043

Hi,
thanks for the answer. I created a toolset view to search posts by repeatable group. But I couldn't configure how to do it properly. Can you kindly give me an example like replicating the process on a test site or on my own site?

#2602051

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Here is the Doc that shows how you can display the repeating field group:
- https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/#displaying-repeatable-field-groups

#2602069

Thanks for the answer.

I found this doc when I was searching for some tutorial. Though this doc shows how I can display the repeatable field group, but it doesn't have the information to build a view search for posts with repeatable group.

That's why I asked for some demo. Can you kindly help me with that?

#2602751

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

The only difference to make a custom search view using the repeating field group is you will have to select the repeating field group as your view's source to query instead of other post types from the content selection tab available at right sidebar of your view block.

But please note that if you create a block view on page then repeating field group will not be available. It will require content template of single post where it will display repeating field group within the content selection tab of block view.

If you want to add custom search for repeating field group then you should create a classic view and add the view to your page.

Please let me know if you need further assistance.

#2602963

My issue is resolved now. Thank you!