Home › Forums › General Issues › Display a linkable URL and Remove the comma › Reply To: Display a linkable URL and Remove the comma
In ACF I have a field with “url” as the type.
Which then appears in the custom post for the user to put in a url.
Then on the page, which is built with elementor, I am using ACF shortcode to display the url as I couldn’t do it via the normal way in elementor.
I was told to put the shortcode in an <a href but it didn’t work or only half works.
a href=”<?= website(‘my_link’) ?>”>[acf field="website"]
I am guessing the “my link” bit would be the url but I don’t want to manually put that in each time. So at which point I got stuck.
I would like the url to display as it does and then link to the site.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.