0

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...

1
  • 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.
    – Scott
    Commented Aug 26, 2011 at 14:30

3 Answers 3

2

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.

0
-1

I've used: http://www.deluxeblogtips.com/meta-box-script-for-wordpress/ to create an upload images metabox....

-1

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:

http://www.webmaster-source.com/2013/02/06/using-the-wordpress-3-5-media-uploader-in-your-plugin-or-theme/

1
  • 1
    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
    Commented Sep 26, 2015 at 22:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.