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.

I'm using WPAlchemy for a custom meta box that lets you upload media. however the "Add Media" button is taking me to the "add media files to your computer..." as a new page (as if it were just a regular link) instead of opening as a pop-up on the same page. I tested my media upload button in a regular post situation and it popped up.

share|improve this question
    
Okay, I solved it (again, cause this happened before but I forgot the solution!).... This was for a custom post type and I hadn't added a support that involved uploading something. So, I added "thumbnail" to the list of supports... 'supports' => array('title','author','thumbnail') for my custom post and that did the trick! It's a weird little glitch. I hope to never make this mistake again! –  Tiffany Israel Sep 7 '12 at 5:56
    
I think that’s too good to know to hide it in a comment. Please write a real answer and mark your question as answered (the ✔) then. –  toscho Sep 7 '12 at 7:39
    
Thanks, I did just now. I tried to answer it right away but I didn't have enough points. Now I have to wait 2 days to accept my own answer. :( –  Tiffany Israel Sep 7 '12 at 15:12
    
Well, I hope you are still with us next week. :) –  toscho Sep 7 '12 at 15:14
    
Thanks! I've been posting mostly on stack overflow and that's where I have a "better reputation" I think I'll post all my wordpress questions here exclusively. Did you have this problem too? –  Tiffany Israel Sep 7 '12 at 17:34

1 Answer 1

up vote 4 down vote accepted

Okay, I solved it (again, cause this happened before but I forgot the solution!)....

This was for a custom post type and I hadn't added a support that involved uploading something. So, I added "thumbnail" to the list of supports...

'supports' => array('title','author','thumbnail')

for my custom post and that did the trick! It's a weird little glitch. I hope to

share|improve this answer
    
Please accept your own answer so this question goes out of the "Unanswered" flow. –  Didier Ghys Nov 21 '12 at 10:47
    
I just did. I couldn't before though, I didn't have a high enough reputation. –  Tiffany Israel Nov 21 '12 at 16:05

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.