Skip Navigation

[Resolved] Cred form submitted child post shows in 2 lines unexpectedly – see pic

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

Problem:

Display child posts submitted through cred form. One label in one line. But only name label and output shows correctly. Other labels and outputs are shown in new lines. Details and output should be one line. review and output should be in another line.

I expected to see: Each line having a label and output.

Solution:

Types shortcode for custom textarea field will output the field value wrapped in a HTML

..

tag, you can disable it by adding attribute output="raw" in the Types shortcode, for example:
[types field='details-of-court-case-or-consultation' output='raw'][/types]

Relevant Documentation:

https://toolset.com/documentation/customizing-sites-using-php/functions/#textarea

This support ticket is created 6 years, 8 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 2 replies, has 2 voices.

Last updated by simranjeetS-2 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#629804
Screenshot 2018-03-30 00.16.41.png

I am trying to: display child posts submitted through cred form. One label in one line. But only name label and output shows correctly. Other labels and outputs are shown in new lines. Details and output should be one line. review and output should be in another line.

Link to a page where the issue can be seen: hidden link

I expected to see: Each line having a label and output.

Instead, I got: see pic please

#629895

Hello,

Thanks for the details, Types shortcode for custom textarea field will output the field value wrapped in a HTML <p>..</p> tag, you can disable it by add attribute output="raw" in the Types shortcode, for example:
[types field='details-of-court-case-or-consultation' output='raw'][/types]

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#textarea
output:
'raw' | 'normal'(default)
‘raw’=Display raw data stored in DB. No other formatting attributes (e.g. custom separator) will be respected.

#630002

Thanks a lot. Please close ticket