• I’m writing a plugin and want to have a custom meta field that is a list of media images (essentially a gallery). Seems to me that using the media uploader in gallery mode makes the most sense (why invent the wheel, you know?) I’ve seen some tutorials and docs for uploading single images, but haven’t found anything yet for multiple images. I would like to be able to both upload and edit the images & order.

    Can anyone point me to API docs for this, or do I have to look through media.php or other WP core files to figure it out?

    Thanks!

    – Fred.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    There’s no API that I’ve ever seen. The uploader is largely javascript based, so overriding the code should be possible. The place to look for source code is wp-includes/js/.

    You are probably better off attacking the issue client side by using jQuery to inject you fields. The issue remains on how to process your added fields once the form is submitted. There may be hooks you can use to take care of your portion of the data. It may be easier to handle your part of the data with event based AJAX if the data’s nature allows.

Viewing 1 replies (of 1 total)
  • The topic ‘Using Media Uploader for custom meta field’ is closed to new replies.