redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

How to call variable media knows someone?

Open Bucur opened this issue 12 years ago • 3 comments

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.', ) ),

Bucur avatar Mar 11 '14 08:03 Bucur

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

jnrbrle avatar Mar 11 '14 08:03 jnrbrle

Code does not appear, please May Put them once...plezzz

Bucur avatar Mar 11 '14 13:03 Bucur

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.

kprovance avatar Mar 11 '14 15:03 kprovance