Tell us what you are trying to do?
I was working on this with a Toolset supporter, but did not get back to the issue in time and it closed. Here is the thread: https://toolset.com/forums/topic/parent-child-post-relationship/
I am trying to get the "Single Booth" content template display hidden link;">Click here to view</a if no URL is submitted in the new booth form.
If a URL is submitted in the new booth form, I want that URL to display instead.
I looked into the sanitize filter (https://codex.wordpress.org/Function_Reference/sanitize_title), but I am not sure how to use it because I am not familiar with PHP and it seems like the post form takes html (perhaps toolset conditional statements take PHP? )
However, I did manage to use regular toolset conditional statements to get a result very close to what I am looking for. Basically, if a user doesn't input a URL for the company url field, it will automatically input their company url on our site
[wpv-conditional if="( $(wpcf-jobsconnected-company-page-url) eq '#' )"]
<a href="<em><u>hidden link</u></em>">Click here to view</a
[/wpv-conditional]
However, if they have a URL to their own website, they can put that in and that URL will show.
[wpv-conditional if="( $(wpcf-jobsconnected-company-page-url) ne '#' )"]
<a href="[types field='jobsconnected-company-page-url' output='raw'][/types]">Click here to view</a>
[/wpv-conditional]
This almost works, but for some reason, if the leave the URL field blank, the
[wpv-conditional if="( $(wpcf-jobsconnected-company-page-url) eq '#' )"]
<a href="<em><u>hidden link</u></em>">Click here to view</a
[/wpv-conditional]
seems to have an odd ending on the url
?cred_referrer_form_id=3110
but this does NOT happen if I simply stick the href link in the content template
<a href="<em><u>hidden link</u></em>">Click here to view</a
Thanks!
Is there any documentation that you are following?
Is there a similar example that we can see?
hidden link
[wpv-conditional if="( $(wpcf-jobsconnected-company-page-url) eq '#' )"]
<a href="<em><u>hidden link</u></em>">Click here to view</a
[/wpv-conditional]
[wpv-conditional if="( $(wpcf-jobsconnected-company-page-url) ne '#' )"]
<a href="[types field='jobsconnected-company-page-url' output='raw'][/types]">Click here to view</a>
[/wpv-conditional]
What is the link to your site?
live site: hidden link
dev site: hidden link