Skip Navigation

[Resolved] Repeater Field Line Breaks

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

Problem:

The issue here is that the user wanted to add a line break after each repeatable field display.

Solution:

This can be done by using the line break code

Example


[wpv-for-each field="wpcf-toc"]
[types field='toc' ][/types]<br>
[/wpv-for-each]

This support ticket is created 5 years, 9 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by saint 5 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1221079

Hi everyone,

I'm trying to do a line break in a Repeater Field and so far, the syntax that I've tried:

[types field='toc' separator='<br>'][/types]

and

[wpv-for-each field="wpcf-toc"][types field='toc' separator='<br>'][/types][/wpv-for-each]

Haven't been able to display each item on it's own line.

Video walkthrough: hidden link

Is this something that's doable?

#1221099

Shane
Supporter

Languages: English (English )

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

Hi Saint,

Thank you for contacting our support forum.

Could you try it like this.
[wpv-for-each field="wpcf-toc"]
[types field='toc' ][/types]<br>
[/wpv-for-each]

Please let me know if this helps.

Thanks,
Shane

#1221113

Thanks, Shane! That did the trick. It seems the <br> disappears in the markup after you paste it in, but the format remains! Much appreciated and have a great afternoon.

Best,