Skip Navigation

[Assigned] PHP custom field formatter for data in repeated field group

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 2 replies, has 1 voice.

Last updated by stephenB-11 1 hour, 49 minutes ago.

Assisted by: Minesh.

Author
Posts
#2844513

Tell us what you are trying to do?

I'm new to Toolset. I want to merge and format a list of dates inside a repeated field group.

I have a CPT Events that has a repeated field group containing Dates and Venue pairs. I would like to take the list of dates from rows of a view (ex Dec 29 2025, Dec 30 2025, Dec 31 2025, Jan 1 2026) and merge them into a text string for output that looks something like Dec 29 - 31, 2025 <br> Jan 1, 2026.

This would be simple to do if I could add custom PHP code in the loop editor, but it seem that this isn't possible? Can you point me in the right direction to be able to rewrite the results of a view? Thank you!

#2844566

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I would like to know where exactly you want to display the repeating field group item dates? on single event post?

In addition to that - Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#2844596

Thanks for your response. The information would need to be displayed both in the single event listing page and also nested in a view that is a list of events.

The current site is basically an empty testing ground for proof of concept.