Tell us what you are trying to do?
I am trying to use an HTML anchor with a link field to show the URL from the link field on the display.
Is there any documentation that you are following?
https://toolset.com/forums/topic/put-a-type-fields-url-into-a-link/
Is there a similar example that we can see?
?
What is the link to your site?
hidden link
On this page (and all the organizations displays), I'm using this shortcode:
[types field='website' output='raw'][/types]
to show the url.
In this case, the website field is populated with:
hidden link
That is what appears as the text, but the href anchor just refers back to the current page.
What the heck am I doing wrong? 🙂
Hi,
Thank you for contacting us and I'd be happy to assist.
I tested the same code and the link on my website and it generated the link, correctly.
On your website, the 'href' part of the link is empty, which is strange, because the same shortcode ([types field='website' output='raw'][/types]) returns the URL, for the link's text part.
It would be interesting to test this with all non-Toolset plugins disabled and a default theme like Twenty Twenty-One. If it's fixed, you can start adding the disabled items, one by one, to narrow down to a possible conflicting one.
If the issue persists, you're welcome to share temporary admin login details, in reply to this message.
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
regards,
Waqar
Thank you for sharing these details.
Your observation is correct and it does seem to be related to the filtering applied by the Divi builder.
Here is a workaround that I tested and it worked. I created a new Toolset content template named 'Test CT' and included the code for the website field's link in that template.
Next, I included this newly created template in the Divi template for this post type, through the 'wpv-post-body' shortcode:
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body )
[wpv-post-body view_template="test-ct" suppress_filters="true"]
Thank you! I hope this gets resolved in a future version of Divi/Toolset.