Skip Navigation

[Resolved] Insert line breaks in view shortcode as a separator?

This support ticket is created 3 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 – 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/Karachi (GMT+05:00)

This topic contains 9 replies, has 2 voices.

Last updated by himanshuS 3 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1942623

I want to pass taxonomy terms in the url parameter to serve as default value in a text field.

I am able to pass this:
list-of-skills=Actionable+next+steps+for+ +[wpv-post-taxonomy type="skill-category" separator=", " format="name" show="name" order="asc"]

and get this:
Actionable next steps for Market analysis, Metrics definition, Product roadmap

I want to get this:
Actionable next steps for
Market analysis:

Metrics definition:

Product roadmap:

How do I do that?

#1943283

Hi,

Thank you for contacting us and I'd be happy to assist.

Based on my research online, using "%0D%0A" as a separator should work:


[wpv-post-taxonomy type="skill-category" separator="%0D%0A" format="name" show="name" order="asc"]

regards,
Waqar

#1944903

It does not seem to work.

I used: [wpv-post-taxonomy type="skill-category" separator="%0D%0A" format="name" show="name" order="asc"]

I got: Market analysisMetrics definitionProduct roadmap

I should get:
Market analysis

Metrics definition

Product roadmap

What could I be missing?

#1949247

To troubleshoot this on a test website, I'll need to see exactly how are you using the text field to populate this value from the URL.

Can you please share temporary admin login details, along with the link to the form where this field can be seen?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

#1954493

Waqar,

I am moving my site to self-hosting and it is taking longer than usual. I will send you the details when the site is fully migrated.

#1955333

Sure, please take your time and I've set your next reply as private again.

#1964291

Thank you for sharing these details.

During testing on my website, I noticed that this structure works:


<em><u>hidden link</u></em> item=@expert-review-request-to-expert-match.parent]&list-of-skills=Actionable+next+steps+for%0D%0A[wpv-post-taxonomy type="skill-category" separator="%0D%0A" format="name" show="name" order="asc"]

Example output:
{yourwebsite.com}/submit-expert-review/?expert-match-id=14572&expert-review-title=Expert+Review+For+Review%20Request&list-of-skills=Actionable+next+steps+for%0D%0AMarket analysis%0D%0AMetrics definition%0D%0AProduct roadmap

#1964395

Waqar,

So the link shows up with %0D%0A as you described when I first save it. But, when I refresh the page, %0D%0A just disappears from the link and the page just renders terms next to one another as there was no %0D%0A mentioned in the url.

What could I be missing?

#1965381

The button widget seems to be stripping some parts of the URL.

If you'll create the same link, using the simple text editor, you'll see that it doesn't have the same issue:


<a class='button' href='<em><u>hidden link</u></em> item=@expert-review-request-to-expert-match.parent]&list-of-skills=Actionable+next+steps+for%0D%0A[wpv-post-taxonomy type="skill-category" separator="%0D%0A" format="name" show="name" order="asc"]'>Submit Expert Review</a>

You'll see the new "Submit Expert Review" button added at the bottom.

#1966077

My issue is resolved now. Thank you Waqar!