Home › Forums › Add-ons › Gallery Field › Gallery Field options per image › Reply To: Gallery Field options per image
Hi guys,
I’ve not yet “coded” anything, but I had a few minutes to think about it.
Here’s what I’ll probably try to do (if you guys just enter this discussion, make sure to refer to my initial post):
• Gallery field
• Repeater field containing two fields: one to identity the image I want to attribute a specific size (width), one to set the size value.
┌─────────────────────────────────────────────────────────────────────┐
│Gallery Field │
│ │
│ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ ┌────────┐ │
│ │ │ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ │ │ │ │
│ └────────┘ └────────┘ └────────┘ └────────┘ └────────┘ │
│ │
│ │
│ │
└─────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────┐
│Image Size │
│ │
│ ┌───────────────────────┐ ┌─────────┐ │
│ Image reference: │IMG_8452 ▼ │ Size:│3 │ │
│ └───────────────────────┘ └─────────┘ │
│ │
│ ┌───────────┐ │
│ │ Add Size │ │
│ └───────────┘ │
└─────────────────────────────────────────────────────────────────────┘
What I would love to achieve is filling the “Image Reference” dropdown automatically depending the gallery content. This is where acf/input/admin_head
could help?
Cheers
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.