Hello @tgilber007 !
Hope you’re doing well today!
Due to security precautions, HTML can’t be used in the custom fields. This would potentially open a serious security hole where someone could add a <script> instead and run any code on your site. We prevent this from happening by removing any HTML tags from the data.
You can do this in a different and secure way though:
– set the value to just {url-1}
– on the page itself display the link, for example like this:
<a href="<?php echo get_post_meta($post_id, 'custom', true); ?>">view</a>
You can also create a custom shortcode to display this link from any builder:
add_shortcode('my_view_link', function($atts, $content) {
global $post;
return '<a href="' . get_post_meta($post->ID, 'custom', true) . '">view</a>';
});
And then you can place [my_view_link] in the content where you want to display it.
Best regards,
Pawel