[Resolved] No clue on how to set up this HTML into a repeatable field

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Related documentation: Adding Custom Fields to WordPress

This topic contains 4 replies, has 2 voices, and was last updated by  jensB-2 11 months, 1 week ago. The support staff assigned to this topic is Luo Yang.

Viewing 5 posts - 1 through 5 (of 5 total)

Hi folks,
I´m working on a custom theme, which uses a lot of custom fields. I´m using the latest version of Toolset Types (free version) and want to create a repeatable field.

This is the HTML code, which schould be written into the site.

<figure id="" class="">
<a id="example4" title="Lorem ipsum dolor sit amet" href="hidden link">
<img alt="example4" src="hidden link">
<figcaption>The caption of the image</figcaption>

Though it should be used to create an image gallery, this entire code has to be repeatable.

Custom fields would define:
- the URL in the <a> tag´s href
- the scr of the <img>
- the caption text in <figcaption>

I know how what inputs I have to use for the single fields, but I don´t know how I can set it up to be repeatable and what I have to write into the template file to output the above code in a repeatable way.

I hope I could make clear, what I´m wanting to do and hope you can help me with this.

Thanks in advance.


Luo Yang
Forum moderator

Supporter languages: English (English ) Chinese (Simplified) (简体中文 )

Supporter Timezone: Asia/Hong_Kong (GMT+08:00)

Dear Jens,

If you have a copy of Views plugin, you can setup it with shortcode [wpv-for-each]:

If you don't have Views plugin, you will need to create a custom shortcode for it, for example:


thank you for your help.

I found this article in the documentation, with which I could assign the fields as repeating field group to my custom post type:

But I don´t know, how I can output the data in my template file with PHP.

Is there any clear documentation about this for not advanced PHP users?


Luo Yang
Forum moderator

Supporter languages: English (English ) Chinese (Simplified) (简体中文 )

Supporter Timezone: Asia/Hong_Kong (GMT+08:00)

You can follow our document to setup your custom PHP codes:

section "Displaying child post contents"


This works like a charm.

Thank you very much for your help.

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Types Community Support’ is closed to new topics and replies.