How to call variable media knows someone?
How to call variable media knows someone? for logo... array( 'id' => 'logo', 'type' => 'media', 'url' => true, 'title' => __('Logo w/ URL', 'redux-framework-demo'), 'compiler' => 'true', //'mode' => false, // Can be set to false to allow any media type, or can also be set to any mime type. 'desc' => __('Basic media uploader with disabled URL input field.', 'redux-framework-demo'), 'subtitle' => __('Upload any media using the WordPress native uploader', 'redux-framework-demo'), 'default' => array('url' => 'http://s.wordpress.org/style/images/codeispoetry.png'), 'hint' => array( 'title' => 'Hint Title', 'content' => 'This is a hint for the media field with a Title.', ) ),
Hi,
put this line of code, in place where you want to show your logo:
$your-opt-name should be replaced with what ever you've set it. default was redux-demo I think.
also, maybe you will need to call global in your header file.
Put this line of code, just before the tag.
Cheers
Code does not appear, please May Put them once...plezzz
You would use:
global $opt_name
$opt_name['field-id']['url']
Please replace $opt_name with whatever name you've set for that argument, and replace field-id with whatever id you've assigned to your media field. Copy an pasting the example I've given will not work.