Hi, I’m searching to add a custom link on my ACF gallery images and I can’t find the solution. I found this plugin, WP Gallery Custom Links, but I don’t know how to add their code in my template:
$custom_url = get_post_meta( $attachment_id, ‘_gallery_link_url’, true );
Does someone have an idea of how can I do without plugin or with this one?
You cannot add links to the gallery. You could create a field groups that is added to “attachments” and add the links when editing the image. Then when looping through the gallery you can use the attachment ID to get this other custom field and do something with it.