Skip Navigation

[Resolved] Space removed / trimmed inside conditional output

This support ticket is created 3 years, 10 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.

This topic contains 1 reply, has 1 voice.

Last updated by michaelA-13 3 years, 10 months ago.

Author
Posts
#1999163

Tell us what you are trying to do?

Hello my view loop works fine expect that I can't get spaces inside my conditionals. I tried a space as normal,   and &#32 but it always gets lost. Outside of the conditional space works without issues.

[types field="broadcast-author"][wpv-conditional if="( $(wpcf-broadcast-author) ne '' )"].&nbsp[/wpv-conditional][/types][wpv-post-title][wpv-conditional if="( $(wpcf-post-title) ne '' )"]. [/wpv-conditional][types field="broadcast-publication-title"][/types][wpv-conditional if="( $(wpcf-broadcast-publication-title) ne '' )"], [/wpv-conditional][types field="broadcast-legacy-date"][wpv-conditional if="( $(wpcf-broadcast-legacy-date) ne '' )"]. [/wpv-conditional][/types][types field='broadcast-date' style='text' format='F j, Y'][/types][wpv-conditional if="( $(wpcf-broadcast-date) ne '' )"]. [/wpv-conditional] [shorturl append="/..." prepend="" target="_blank"]
[wpv-post-body view_template="None"]

#1999175

My issue is resolved now. Thank you!

Sorry a shortcode was open that caused the issue.