• Resolved devtb

    (@devtb)


    Hello everyone!

    I had one working wordpress site, which I split to 2 sites using WordPress multisite.
    Example http://www.site1.com, now there are http://www.site1.com and http://www.site2.com.
    Content on site2 was before on site1 and my plan is to use single CMS to manage both sites. The problem are images because all images from site1 are in wp-content/uploads/YYYY folders but new images from site2 are in wp-content/uploads/sites/2/YYYY folders. I want to use same upload folder also on site2 since most of the content from site1 is now on site2. Is there a way to import only paths of all current images to media library on site2 ?
    Or should I move all folders to subfolder ?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Added tag for local host

    the simple movement of files does not work because the paths are stored in the database, normally from WordPress 3.5 you will have /wp-content/uploads/sites/2/data/ (for site with id 2) for all secondary sites while for the main site it is /wp-content/uploads/data/. If you export from a single site (not multisite) , the importer only copies the textual path (/wp-content/uploads/date/) it is up to you to modify the paths to the secondary site with plugins or manually.
    from the network in secondary site settings you can set the path (local and/or remote) for uploads or use some plugins.

    WordPress media library folders

    Folders and images added to the site by FTP are not showing up in Media Library Folders
    Media Library Folders does not work like the file manager on you computer. It only display images and folders that have been added to the Media Library database. To display new folders that have not been added through the Media Library Folders you can click the Check for new folders option in the Media Library Folders submenu in the WordPress Dashboard. If you allow WordPress to store images by year and month folders, then you should click the option once each month to add these auto-generated folders.

    To add images that were upload to the site via the cPanel or by FTP, navigate to the folder containing the images in Media Library Folders and click the Sync button. This will scan the folder looking images not currently found in the Media Library for that folder. The Sync function only scans the current folder. If there are subfolders, you will need to individually sync them.

    Thread Starter devtb

    (@devtb)

    Solved. I used plugin “Export media with selected content” which worked good.
    I exported all Posts and then imported it (but all media was duplicated).

    • This reply was modified 6 years, 5 months ago by devtb.

    Hi, this is a problem with the non-wordprress plugin, go here for assistance.
    https://wordpress.org/support/plugin/export-media-with-selected-content/

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress Multisite uploads directory’ is closed to new replies.