Integrate video and iframe in a post type gallery
The problem is that image is not a proper mime type. You can see a list of mime-types here – so based off the linked list we need to pass an array of what we need: $supported_mimes = array( ‘image/jpeg’, ‘image/gif’, ‘image/png’, ‘video/avi’, ‘video/x-flv’, ‘video/mp4’, ‘video/ogg’, ‘video/webm’, ); $args = array( ‘numberposts’ => -1, // … Read more