I have an iframe which is customised by a code inserted by the custom field.
My code is…
<iframe src=”http://thedomain.com?webeventid=%5Bacf field="event_code"]“></iframe>
But it not working. I can form the whole url by conjoining 3 acf fields, but not as above. is it because there’s double quotes within double quotes?
The above is being placed in the wordpress editor.
Any way to get this to work?
Thanks.
See this, it explains what you need to do https://make.wordpress.org/core/2015/07/23/changes-to-the-shortcode-api/ but basically
<iframe src="http://thedomain.com?webeventid=[acf field='event_code']"></iframe>