• Hi!

    We have 2 versions of our bathing blog: Norwegian and English. They are not totally synced right now, but we want to have the same blogs and pictures in both. So using the same file area for both media libraries seems sensible.

    But how can we keep things in sync without using e.g. “Media sync” and doing a manual operation every time we add a file? We just want to add a file in one site with Media Library as usual and have it immediately available in the media library in the other site.

    And no: I dont’ want to pay extra money for a CDN or anything, I feel this should be possible without any costly special services.

    Any help very appreciated!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator threadi

    (@threadi)

    If the two websites were in a multisite, at least the data would be in the same database and the files would already be in the same file system. Then you could use a commercial plugin like Multisite Shared Media or try this ancient plugin: https://ww.wp.xz.cn/plugins/multisite-mediasync/

    Otherwise, the only option would be to develop it yourself. If you need help with this, you’re sure to find it here: https://jobs.wordpress.net/

    Thread Starter badeknut

    (@badeknut)

    Thanks for responding! However: Multisite Shared Media seems to simply sync two different locations to contain the same files, not letting 2 sites use the same file area?

    And the other seems way outdated.

    Rather strange, I find, since I see lots of people ask about the same functionality I’m looking for, but I can’t find a good solution.

    Moderator threadi

    (@threadi)

    The media library is based on the files in the project’s upload folder on the one hand, and on the data records that WordPress stores for the files in its own database on the other. Due to this division of data, it is not possible to simply display the same files for two projects—instead, they must be synchronized, which would be possible with the above-mentioned plugins.

    Another alternative would be my own plugin, External Files for Media Library. However, this will only be ready to support such a feature in the next version. But here, too, synchronization takes place, even if the source data remains where it is.

    Thread Starter badeknut

    (@badeknut)

    Sounds very close to what I want. I have both sites on the same host, so they could both easily access the same file area. But I don’t quite see how your plugin works: can I tell it once and for all that I want to use one place for files and then it reads that area and updates the media database? Or do I have to manually ask for an update? Or do you mean that you read that area and copy the files to the wp-content\uploads of each site? In which case the files will still be doubled up?

    Moderator threadi

    (@threadi)

    As mentioned, this will only be possible with the next version. You will then be able to specify an external source (which can also be a directory on the own hosting) for synchronization which will run automatically. However, only the files will be synchronized, not any settings (such as Alt-Description). I cannot yet say when the version will be available – hopefully this year.

    Moderator threadi

    (@threadi)

    And that is exactly what would be possible with the next version of my plugin mentioned above with the next major update. Currently, it only works with the multisite approach described above.

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

The topic ‘Using same media library for 2 sites’ is closed to new replies.