Okay
  Public Ticket #573240
Default value for media type in metabox-config
Closed

Comments

  • Henning started the conversation

    Hi support,

    I'm trying to set a default value for a media file, but have had no success :(

    So hope it's something you can help me with.

    array(
    'id' => 'cpbg-opt-portfolio-main-menu-logo',
    'type' => 'media',
    'url' => true,
    'title' => __('Main menu Logo', THEME_LANGUAGE_DOMAIN),
    'desc' => __('Logo to be uset in the top menu ', THEME_LANGUAGE_DOMAIN),'',
    'default' => 'http://designguide.tv2.dk/wp-content/uploads/2015/10/tv2_p_preview.png',
    ),

    It's shows up with all other custom selection options, but no default selection is shown?

    Any help would be appreciated

    Kind regards

    Henning Mortensen

    JUSTare

    JUSTare
    Kompagnistræde 22
    1466 København K

  •  1,815
    Support replied

    Try

    \'default\' => array(\'url\' => \'/your default url here\'),

    thanks

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Henning replied

    Thanks :)

    It worked like a charm :D