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

1566 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 100+ members
  • Has sold $40,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
+2 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! ;)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes