Link URL in Custom Field

Posted in: Newspaper
Post count: 209

Hello,
I have a link (URL) as a field of ACF. Can I somehow make this link clickable when inserted/shown in a module?

Post count: 27744

Hello,

To set a URL on the button, use the element button and set the custom field there -> https://i.imgur.com/ZGYBjfE.png. You need to use {cf_nameoffield} -> https://i.imgur.com/F2ysuLA.png

Thank you!

Post count: 209

Thank you!

Post count: 8

Hi, I have a similar problem, but it still doesn’t work for me. My custom field is _facebook_can but if I use {_facebook_can} on my button url, I get a non valid url, just this one http://localhost/bereilvino/cantina/il-cortiglio/%7B_facebook_can and if clicked redirect to a 404 page.

Can you help me? Thanks

Post count: 27744

Hello,

If this is a custom field, then you need to add like this {cf _facebook_can}

Thank you!

Post count: 8

Thanks for your answer Anamaria. I used the string {cf_facebook_can} in place of the old one {_facebook_can} and something is changed, but it still doesn’t work. The new link button becomes http://localhost/bereilvino/cantina/il-cortiglio/#. Like a missing url, but the custom field is not empty.

Post count: 27744

Hi,

Can you please provide some screenshots with the type of the field and how you have set it?

Thank you!

Post count: 8
Post count: 27744

Hello,

Please try this {cf__facebook_can}. Also, there is the same screenshot; I need to see the value from the URL where you have set I and so on.

Thank you!

Post count: 8

It’s works! The link button shows now the correct url https://www.facebook.com/ilcortiglio/

The string {cf__facebook_can} is the correct one. I probably wasn’t fully awake to notice this stupid mistake šŸ™

Thanks Anamaria, your are an angel. Have a nice day!

Post count: 27744

Hello,

I’m glad that I could help you. Don’t hesitate to contact us if you have other questions.

Have a great day!

Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.