Thanks!
Will that create just one new field, or will it create an array? The person is going to enter a different value on every gallery image.
So, how do I retrieve it; rather than $images[‘url’], is it $images[‘attachment’][‘new_field’] ?
Thanks! Would it be possible to show an example (I wouldn’t know how to approach this otherwise)?
Thanks guys. I’ve conjured up this, which in my mind should work:
function same_youtube_options_controls_acf($content) {
$content = get_sub_field('iframe_url');
return str_replace("rel=0&", "rel0&&autohide=1&showinfo=0&controls=1&", $content);
}
add_filter('acf/load_field/name=iframe_url', 'same_youtube_options_controls_acf');
However, the iframe_url just disappears.
Sorry to be a pain.
Hey Elliot,
I’ve just tried that and still, no. 🙁