• Resolved lespaul

    (@lespaul)


    Hi, I try to change the default value for gallery settings in the standard WordPress media uploader. Default value is “post” but I need it to be “file”. I have tried to add this filter in function.php but it does not work.

    function mytheme_setup() {
    	// Set default values for the upload media box
    	update_option('image_default_link_type', 'file' );
    }
    add_action('after_setup_theme', 'mytheme_setup');

    It only work for single pictures but not for galleries. So I wonder, how do I solve this without hacking the Core?

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Image gallery link problem’ is closed to new replies.