Skip Navigation

[Resolved] Repeater groups with multiple field types

This thread is resolved. Here is a description of the problem and solution.

Problem:

Can I set up a repeater field with multiple types of custom fields? This would be similar to ACF repeater fields in which you can have a text box, mixed with multi line text box and an image for instance.

Solution:

Yes, there is a built-in "Repeatable Field Groups" feature within Types plugin

Relevant Documentation:

https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/

This support ticket is created 6 years, 2 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 9 replies, has 2 voices.

Last updated by Marina Joseph 6 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1167965

Can I set up a repeater field with multiple types of custom fields? This would be similar to ACF repeater fields in which you can have a text box, mixed with multi line text box and an image for instance.

#1168415

Hello,

Yes, there is a built-in "Repeatable Field Groups" feature within Types plugin:
https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/

And Toolset "Repeatable Field Groups" is based on one-to-many relationship, so each item of Repeatable Field Groups is a single post too.

#1168737

Thanks so much. Is there documentation on how to put into a php template?

#1168820
no-repeatable-group.JPG

I'm following the instructions to add a repeatable field group, but after creating a new group, assigning it to a specific post type, when I add a new field, I don't see Repeatable Field as an option.

Do I need any further plugins to make this active? I only have Toolset Types active.

#1168847
no-repeatable-group2.JPG

I just realised where the "add repeatable group" button should be, and it's not there.

#1169346

Q1) I just realised where the "add repeatable group" button should be, and it's not there.
Please check these:
1) You are using the latest version of Toolset Types plugin, you can download it here:
https://toolset.com/account/downloads/

2) Edit the post field group again, in section "Settings for grant group", assign it with some post types
Then you should be able to see the button "Add New Repeatable Group" is activated

Q2) Is there documentation on how to put into a php template?
As I mentioned above, Toolset "Repeatable Field Groups" is based on one-to-many relationship, so you can follow our document to setup your custom PHP codes:
https://toolset.com/documentation/customizing-sites-using-php/displaying-child-posts/#displaying-child-post-contents
section "Displaying child post contents"

#1169967

I figured it out. I had to update my post relationships in the Toolset settings section for it to appear, but now none of my custom post types are displaying. I'm getting a 404 error on all of them. It looks like maybe the slug/url changed for them. They are listed on archive pages of them, but the individual posts aren't showing. Pages and Posts are fine, it's just cpts created by Types. How can I fix this?

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/w-none-of-my-custom-post-types-are-displaying/

#1170029

I had to save permalinks

#1170071

It is a new problem, please check the new ticket here:
https://toolset.com/forums/topic/repeater-groups-with-multiple-field-types/

#1170584

My issue is resolved now. Thank you!