Media field for audio and video files
Hi guys,
quick question: how can I add audio or video files in media field? My field looks like this
array(
'id'=>'custom_media',
'type' => 'media',
'title' => __('Media field', 'redux-framework-demo'),
'url' => true,
'mode' => false,
'readonly' => false,
'preview' => false,
'desc'=> __('Basic media uploader', 'redux-framework-demo'),
'subtitle' => __('Upload any media using the WordPress native uploader', 'redux-framework-demo'),
),
If I put link manually it works fine, but if I try to do this with Upload button input field stays emty (with placeholder in it), nothing happens. Any ideas?
Best Marcin
Same here.
There seems to be a small bug. We'll have it resolved next week. :)
I've found that this issue is related with the commit a3f07a6a41f7d4ab9e4a4ed9e0732eb3848f4e2f, file "ReduxCore/inc/fields/media/field_media.js". I reverted this file to its previous version ("jQuery.redux.media" parts to "redux.media") and now the media upload is working with audio and video files.
After that, I tested the issue https://github.com/ReduxFramework/ReduxFramework/issues/551 and everything is working great. Should I open a Pull Request?
Yeah, go ahead. I'll run it through the machine here, and if it works, we'll commit it. Thanks :)
@maarcin, we just pushed a fix for this. Would you please download the update and verify it works for you? Thanks!
@kprovance @meydjer This fixed it :) Checked with metaboxes too and everything works fine. Thanks.
Awesome.