Does anyone know if this is possible: I’d like to create an ACF field for Photo Credit. I would assign that field to attachments, so that when I upload an image, I can select either a WP user (ACF User Field) or the photographer isn’t a WP user add some text (ACF Text field) denoting the name of the photographer.
What I’d like to do is then automatically add that below a photo when there are values. I’m having trouble getting that to work. I think what I want is the img_caption_shortcode filter. Something like:
Exactly what I searched for but unfortunately neither image_send_to_editor nor img_caption_shortcode seems to work with Gutenberg. Is there any known option to use the ACF fields in media files with Gutenberg (except developing own blocks)?
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users