Skip Navigation

[Resolved] Repeatable field filter is not working

This support ticket is created 3 years, 10 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 3 replies, has 2 voices.

Last updated by Minesh 3 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2324905

normal filter on view is working but repitable filter select field is not orking. Please guide us to resoulve this issue

#2324941

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Do you mean that you have post type X (which have 2 fields) where you added the repeating field group Y that holds (which have 3 fields) and you created a view and you added filter to your view for field of both X and Y and view is also set to query both X and Y. Is this correct?

For instance:
- if you have a "Student" post type and Student post type holds custom fields (Status,Rank) and you created a repeatable field group "Personal Information" with fields (phone number, email address, location etc..).
- You create a view and set this view to query both post type "Student" and repeating field group "Personal Information" and added filters for fields for both post type "Student" and repeating field group "Personal Information" then this is not right thing.

When you have custom search, you can only include front-end filters for specific post type. In this case, either you can set your view to query post type "Student" or repeatable field group "Personal Information" at a time.

Lets say, if you set your view to query post type "Student", then you cannot include filters for location field as its belongs to repeating field group. When you set your view to query post type "Student", you can only add search fields that is belongs to that post type, in this case (Status,Rank).

I hope this is clear.

First I will require to know what content you want to search and what fields you want to display as result.

#2327363
screenshot-projectshowcase.link-2022.03.jpg

I have post type 'model'. where i have Repeatable fields like Attention,G-Services ,Services,Place. In models archive page there is filter but its not retunrning any data with repetable fields filter.

[wpv-filter-start hide="false"]

[wpv-filter-controls]
<div class="row bbbb">
<div class="form-group">
<label for="wpv-wpcf-breast-size">[wpml-string context="wpv-views"]Breast Size[/wpml-string]</label>
[wpv-control-postmeta field="wpcf-breast-size" url_param="wpv-wpcf-breast-size"]
</div>
<div class="form-group">
<label for="wpv-wpcf-type-of-escort">[wpml-string context="wpv-views"]Type of escort[/wpml-string]</label>
[wpv-control-postmeta field="wpcf-type-of-escort" url_param="wpv-wpcf-type-of-escort"]
</div>
<div class="form-group">
<label for="wpv-wpcf-attention">[wpml-string context="wpv-views"]Attention[/wpml-string]</label>
[wpv-control-postmeta type="select" field="wpcf-attention" default_label="Select" url_param="wpv-wpcf-attention"]
</div>

</div>
[/wpv-filter-controls]
[wpv-filter-end]

#2328455

Minesh
Supporter

Languages: English (English )

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

You can not filter the post type archive using the repeating field group.

A repeatable field group is technically actually implemented as a separate custom post type from its parent post. Each row of an RFG is technically implemented as one post in that custom post type, and each of those RFG instances is related to its parent post in a one-to-many post relationship internally.

You can filter your archive using the custom fields directly associated with that post type.