PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Tagging Images uploaded to Media Library

  1. Http://www.UniMFA.org/upload-art-to-the-online-gallery/

    Hello I want people who upload images with this form to my website to be able to choose the school that they go to on the form and have this tag the image in the Media Library with the name of the school so that the images will automatically be sorted by college.

    I cannot figure out exactly how to do this so any help would be appreciated. I'm liking gravity forms so far!

    -weisserj

    Posted 13 years ago on Wednesday February 23, 2011 | Permalink
  2. I currently have it so that the School drop-down creates and tags a POST with the name of the school which is not what I need. I need it to tag the MEDIA itself (employing the media tag plugin) that is uploaded to the Media Library. I'm thinking this could be done with the HTML or Custom Field boxes but I'm not sure. After the images are automatically tagged with the name of the school they will in theory auto-sort and display on the individual college pages.

    Let me know if you need me to clarify anything

    Posted 13 years ago on Wednesday February 23, 2011 | Permalink
  3. Media Library items and images don't have tags. They have Title, Caption and Description attributes. These are also options on the Post Image field to display these fields so users can input information into them.

    If the issue is you want to populate these values using the value of another field you would have to write custom code to accomplish this. It isn't something you can do without custom code.

    How familiar are you with PHP and WordPress hook/filter usage?

    Posted 13 years ago on Wednesday February 23, 2011 | Permalink
  4. Sadly not at all really. I got Gravity Forms because I thought the image upload could do this. I am talking about media-tags (http://wordpress.org/extend/plugins/media-tags/) which is a plug-in that adds tags for media. You cannot do this with a custom field? The fellow who makes the plugin wants to help me to get this to work but he is not all that familiar with gravity forms so perhaps you could give me advice I could forward to him.

    Posted 13 years ago on Wednesday February 23, 2011 | Permalink
  5. Tags aren't a built in feature of the Media Library. Gravity Forms works with the built in WordPress features. We can't take into account plugins like media-tags which adds functionality that doesn't otherwise exist into WordPress because most users aren't using that plugin, so we can't rely on it.

    There are plenty of hooks/filters in Gravity Forms to make this possible. If the developer of the media-tags plugin wants to contact us via our Contact Us form we'd be glad to let him know what hooks are available and a general idea of how to accomplish this using custom code.

    Posted 13 years ago on Wednesday February 23, 2011 | Permalink
  6. Hmm maybe I can do it some other way without media tags plugin (though ideally that would be much better). Essentially I want a large pool of uploads that automatically sorts onto separate pages based on the "school" selection in a dropdown menu. Maybe I can do this via categories or something...

    Posted 13 years ago on Wednesday February 23, 2011 | Permalink