43 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more

I want to add option for the user to choose the type of the gallery which he is adding. Will it be a slider, masonry gallery or some other type.

I cannot figure it out how I can add custom meta data in the media popup. Here in the screenshot I am showing where I would like to put it.

enter image description here

I would like to add SELECT, with OPTIONs of the Gallery type.

Thank you

1570 posts
  • Became a Top 20 Author of the Month
  • Had an item that became a weekly top seller
  • Has been part of the Envato Community for over 7 years
  • Has referred 100+ members
+4 more

Pretty sure it can’t be done.
Best thing to do it just let the user choose images, and choose the gallery type somewhere else.

10 posts
  • Has collected 1+ items on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
  • Located in United States

Hey Design_Mania,

I’ve never tried this myself … but, I have been doing some research into customizing the “Add Media popup” for a current project I’m working on and I think I might have something that can help get you started.

To add meta data to the popup there are a few hooks that can be used: 1. attachment_fields_to_edit 2. attachment_fields_to_save

Here’s a WPtuts+ article on How to Add Custom Fields to Attachments ... though it doesn’t appear to be for galleries I hope it will (if nothing else) get you going in the right direction.

Don’t quote me exactly on any of this, I’m still trying to learn myself … but, I hope it’s enough to start with! ;)