Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I see plugins that somehow hook into the Wordpress file browser (so that users can either upload an image to the image library or choose an image from the image library) but I've been searching through the codex and can't seem to find a simple way to do this.

I'd like to add the image browser/file upload to my options page...

share|improve this question
If you see plugins doing this then best way to find out how to do it would be to look at the plugin source code. The codex is lacking in a lot of information and I doubt you would find how to make an image uploader for your options page there. – Brady Aug 26 '11 at 14:30

3 Answers 3

up vote 1 down vote accepted

Read this article: Using the WordPress Uploader in Your Plugin or Theme. I've successfully used this method to integrate the WP uploader with my own plugin.

share|improve this answer
Looks good to me...thanks! – redconservatory Aug 26 '11 at 21:43

I've used: to create an upload images metabox....

share|improve this answer

At the bottom of the article linked to by Devin, there is a link to a new article by the same guy, which shows the code updated to use the new media loader in WP 3.5:

share|improve this answer
Please do not answer with link only answers. Everything needed to understand the answer should be part of the answer. Thanks. Also you better care about newer questions. – kaiser Sep 26 at 22:20

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.