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?
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
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?
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.
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.
Sure, please take your time and I've set your next reply as private again.
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
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?
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.
My issue is resolved now. Thank you Waqar!