Skip Navigation

[Resolved] Search date repetable field

This support ticket is created 2 years, 8 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by andreaV-4 2 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#2310065

Hi,
on one site I have a group of repeatable fields, including a date.
In a view if I go to set a filter with date > = the same doesn't work.
Is it possible to search on a date in a repeatable field?
Is it also possible to change the css of the data field in the views?

Regards

#2310563

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andrea,

Thank you for getting in touch.

Can you send me a screenshot of your date filter?

Is it possible to search on a date in a repeatable field?

Yes it is possible to perform a search on the date field even if it is a repeatable field.

Is it also possible to change the css of the data field in the views?

Yes this is possible to do as well but you will need to inspect the frontend page using the developer tools of your browser to find the appropriate classes that you will need to modify to edit the css for the date field.

Thanks,
Shane

#2310591
Ricerca.JPG

Hi Shane,
for CSS i fix it. For search i attach an image of filter.
Thanks

#2310643

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andrea,

Based on what I see in your screenshot it should work as intended.

Can you delete the query filter and frontend filter and then re-add the frontend filter and try again.

If this doesn't work would you mind allowing me to have admin access to the site so that I can have a first hand look at this issue for you.

Thanks,
Shane

#2310655

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andrea,

Thank you for the credentials.

I was able to identify why this doesn't work. You are actually using a Repeatable Field group rather than just repeating fields.
The Toolset Repeatable Field Groups are based on one-to-many relationships, so each item of the Repeatable Field Groups is also a single post. Toolset does not allow to filter two related post types at the same time.

Essentially you won't be able to use a frontend date filter to filter your posts based on the date values in the repeatable field group.

Thanks,
Shane

#2310671

My issue is resolved now. Thank you!