WPAlchemy MediaAccess “Add Media” button opens new page instead of pop up

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.

1 Answer
1

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

Leave a Comment