[ad_1]
Hi all,
I have a custom post type where one of the custom fields contains a website link.
I am trying to show this link in a pop-up or lightbox in a iframe.
Is there a way to set the source of this iframe by the value of the custom field? I can’t seem to figure out how to achieve this.
Any advice is much appreciated!
[ad_2]
Install a lightbox plugin and pass the URL into it.
ACF uses PHP and the get_field function. So you can write your own shortcode, that returns the field, or the full iframe code with the url from the field.
Or use Bricks or Breakdance or Cwickly, which all enable easy getting of ACF fields (dynamic data) which you could put in a custom code block.