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.
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.
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.
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.
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?
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?
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.