Skip Navigation

[Resolved] Can't search from Repeating Custom Fields

This support ticket is created 5 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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by Alessandro 5 years ago.

Assisted by: Nigel.

Author
Posts
#1376843

Referring to this post:
https://toolset.com/forums/topic/search-and-filter-by-repeatable-field-groups/

I have a Custom Post Type: Location

Location has some Repeating Custom Fields, one of this is "Max-Capacity"

I would like to make it possible to search for location(s) by Max-Capacity

#1376901

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry, I was off on Nov 1st and for some reason I didn't get any notifications about your updates in the original thread, I've just seen your comments now.

I just tried this on my local site and it works as expected, in the limited way I described in the previous thread, namely that you can create a View to search the RFGs, but you cannot create a View to search the posts to which the RFGs belong.

So if you have a custom post type Location which has a repeatable field group "Rooms", which includes a field "max-capacity" then you can create a View where the Content Selection is "Rooms", and you can then insert a filter for "max-capacity".

On the front-end that View will display rooms, and you can apply a filter for max-capacity.

That's what I just tested, and it works.

If it doesn't on your site, and you updated to the latest version of Views, then perhaps there is an issue with the filter you inserted.

I'm guessing max-capacity is a number? And you might insert a filter that specifies it is a number greater than or equal to the filter value?

#1376933

So i can't show for location whose rooms capacity is a number.

I need assistance to make it possible. It is useless to show custom fields to my visitors who searches for location
I'd need a view that shows location instead of rooms

Where can i start ?

#1376959

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I understand the frustration, but as I said in my first reply to your previous post, it's simply not possible.

The way that repeatable field groups are implemented using a hidden custom post type means that you cannot include fields belonging to a repeatable field group in searches for the post type the repeatable field group is assigned to.

It is currently technically not possible. It could be possible, but that requires our developers to do some additional work on the Views plugin, and that is why I suggested you submit a feature request (at https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/) so that the product manager is aware of demand for this and may schedule time for it to be developed.

There isn't any kind of workaround I can offer you.

If you want to be able to search Locations by "max-capacity" then max-capacity must be a direct field belonging to locations, it cannot be indirectly assigned to locations using a repeatable field group.

Sorry if it was unclear in the original thread.

#1376965

Thank you Nigel i'm writing a feature request