Support » Developing with WordPress » Merge multisite subsites

  • Resolved termel

    (@munger41)


    Hi,

    Any clue for merging 2 (or 3) subsites in the same network ?
    Especially regarding the media migration in order to keep images indexes inside post [gallery] shortcode working ?

    Thank you very much !

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can export, then import. Check how it is, then delete original.
    You can try it on a sandbox if you don’t have localhost setup: https://wpsandbox.net/

    When we import the Theme Unit Test data, it works great. But since we added blocks to the data, some of the imported content retains the links to the original URL instead of changing to the new one. This is using the standard WordPress Export/Import.
    You can try one of the many plugins for migration that might work better.

    Thread Starter termel

    (@munger41)

    Thanks for your reply @joyously.
    For the link change maybe a search replace in the db is ok, but the media problem seems trick: how to reassign correct images ids in the shortcode galleries to the newly imported media content ?

    Yes, that is a trick, which you should test in a sandbox to see which tools address it. The galleries in the Theme Unit Test data don’t specify IDs in the shortcodes, so it works fine (gallery defaults to all attached images).

    Thread Starter termel

    (@munger41)

    Yes, the problem is exactly what you pointed out, the ids inside the shortcode : bad idea for migration… 🙁
    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Merge multisite subsites’ is closed to new replies.