Foreach Iteration of Repeater Fields

21 January, 2021 13:51:47
terracellc
Topics: 1
Messages: 1
I'm testing out your product and in my custom post type, I have a repeater region (using JetEngine).

The repeater region field shows up as a serial array.

Is there an attribute I'm missing to have this parse correctly and output correctly in the pdf? Or are repeater regions not support for custom post types?

Are repeater regions supported for Formidable Forms? If so, are there any examples out there to see?
22 January, 2021 00:14:34
E2Pdf
Support
Topics: 7
Messages: 3176
Hi,

If you see output as not serialized output and it's not multidimensional array, it must be possible to output data via "implode" attribute as follows:

[e2pdf-wp key="pdf-rooms" meta="true" implode=" ,"]

However if you are using JetEngine, it seems all values in repeatables saved as multidimensional array. In this case it's possible to output values only separately via standard shortcodes via "path" attribute as [e2pdf-wp key="pdf-rooms" meta="true" path="item-0.room-id"]. Some more details can be found here: https://e2pdf.com/support/desk/repeater-field-output.

If you still need to output all values inside one field and you have multidimensional array, currently it's possible to accomplish the task via custom filter added to "functions.php" and modifying shortcode output. Example: https://codeshare.io/2W7eZv.

As about Formidable Forms:

Repeatable values can be output separately via [123:1], [123:2], [123:3] where 123 is field id and 1 is the index of repeatable value. However it's also possible to output data via Formidable Forms "[foreach]" contruction: https://formidableforms.com/knowledgebase/repeatable-section/#kb-displaying-repeater-fields

We remain at your service.
We would really appreciate your feedback at WordPress.org!