Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

In my theme's options page. I want to have a textfield where a user can enter a http path to an image.

and

have a button beside it which brings up the media uploader (library) where a user can upload an image and insert its path directly into the text field.

Any ideas on how I can do this ?

share|improve this question
    
Please provide more details on what have you tried and any code already developed. Providing what you need alone is usually considered fork-for-me-for-free kind of request and is not in scope. –  Rarst Jul 18 '13 at 22:59

1 Answer 1

Go here ... it's not quite ready for prime time but will get you started:

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

share|improve this answer
    
Link only answers are discouraged. If something happens to that link the answer becomes useless. Please try to make your answer here stand alone. –  s_ha_dum Jul 18 '13 at 22:54

Your Answer

 
discard

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.