WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Now that Wordpress has updated to version 3.5, the media gallery has been overhauled and this custom options solution doesn't appear to work anymore. I'd like to add a couple of fields to the gallery, so that a client doesn't have to manually add these fields to the gallery shortcode.

Does anyone know how to add custom fields with the new 3.5 gallery?

share|improve this question
Apparently, we'll have to wait for 3.5.1 or .2 ... The file that renders the attachment details in the Add Media screen doesn't seem to have any hook for this. – brasofilo Dec 14 '12 at 1:54

It looks like the nightly builds of the Advanced Custom Fields plugin can (mostly) handle this now, so you could try installing that. Details on this support issue.

I can't update my copy of it to test right now but this is what it would look like in the admin:

enter image description here

share|improve this answer
As of today the "Location" is called "Forms->Attachment" and it only adds the field to individual media items, not to galleries as the question asks. – MarcGuay Jul 18 at 22:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.