ACF Fields url

Posted in: Newspaper
Post count: 6

Hi, I have Two ACF Fields
1- For Link Title – [acf field=”website_display”]
2- For URL – [acf field=”website_link”] (Target _blank)

By using tagdiv text column – I can only display value from [acf field=”website_link”] but can’t click on it.
I try this code:

a href='[acf field=”website_link”]’ target=”_blank”>[acf field=”website_display”]/a

but not working, so I need help.

  • This topic was modified 4 years by Solida333.
  • This topic was modified 4 years by Solida333.
Post count: 27744

Hello,

To add the acf fields, you can use the element Single Post Custom Field -> https://i.imgur.com/RGXBNoe.png -> https://i.imgur.com/CmqcCgz.png
Another solution is to set the acf using the shortcode -> https://i.imgur.com/1ReMFDR.png and set it in the Single External Shortcode -> https://i.imgur.com/cA0DpoK.png

Thank you!

Post count: 6

I want to create a DYNAMIC LINK by using ACF Field. From what your answer above is just a way to Display the ACF Field. and BY using CUSTOM FIELD block it have a unique url not dynamic that I can input from the back-end.

How to use ACF Fields in a href html tag?

Example:
I create a Directory Page where URL is different from each shop.
I have a Shop URL : http://www.someoneshop.com << this has two ACF value(display text; URL)
so from the Back-end I can input the value (display text; url) and it’s will display the dynamic link in the front end for visitor to see.

something like this:
a href='[acf field=”website_link”]’ target=”_blank”>[acf field=”website_display”]/a

Post count: 21065

Hello!

This will be available in the next new update of the theme.

Stay tuned!

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