WordPress.org

Support

Support » Multisite » Share media library between blogs

Share media library between blogs

  • We want to share the media library between ‘blogs’ on our multisite install so that an image or document (and meta) uploaded to one blog via media library is available for insert (and edit) to all other blogs.

    We’re using multisite to build a medium size website using different ‘blogs’ as website subsections. e.g. fruit.org with blogs being fruit.org/apples, fruit.org/bananas, fruit.org/pears etc

    The ideal would be to set up necessary paths in wp-config. This works fine for the upload path eg

    //  set upload directory
    //(http://codex.wordpress.org/FAQ_Forum_Hot_Topics#How_do_I_change_the_file_upload_path.3F)
    define('UPLOADS', 'imagestore/allimages');
    require_once(ABSPATH . 'wp-settings.php');

    The problem is the ‘insert into post’ code generated when inserting media. It defaults to files/#blognumber/directory regardless of settings in ‘Edit Site’ wp-admin/ms-sites.php?action=editblog

    How Can we modify the insert code without major hacking to WP core ?

    We thought this would be a common modification but can’t find a solution out there …

  • The topic ‘Share media library between blogs’ is closed to new replies.
Skip to toolbar