4

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.

  • 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. – fuxia 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. :) – fuxia 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
5

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

  • 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
  • @Stratboy Sweet! If your using Wordpress I highly recommend Advanced Custom fields. I've been using it for a while now and love it! – Tiffany Israel Jun 28 '17 at 22:49
  • @Tiffany! I'll give it a try! Did you ever tried it along with Polylang? If yes, does it work well? – Luca Reghellin Jun 29 '17 at 7:59
  • @Stratboy no I never tried Polylang – Tiffany Israel Jul 10 '17 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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