Problem:
The issue here is that when the user has a URL field and enter his homepage url into that field, it get printed as a / on the frontend.
Solution:
To resolve this you will need to use our conditional shortcode.
Here is an example below.
[wpv-conditional if="( $(wpcf-website) eq 'homepageurl' )"]<a href="[types field='website' output='raw'][/types]">Homepage</a>[/wpv-conditional] [wpv-conditional if="( $(wpcf-website) ne 'homepageurl' )"][types field='website' target='_blank' output='raw'][/types][/wpv-conditional]
Notice i've replaced the / with the text "Homepage"
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 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 7 replies, has 2 voices.
Last updated by 6 years, 7 months ago.
Assisted by: Shane.