Title: Programmatically connect translations
Last modified: December 11, 2025

---

# Programmatically connect translations

 *  [Michael](https://wordpress.org/support/users/mkalina/)
 * (@mkalina)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/programmatically-connect-translations/)
 * I recently switched to this plugin, converted my site to a multisite, and used
   the WordPress Site Cloner from Never Settle to clone my English site into German(
   DE) and Dutch (NL) subfolders. I now have three identical copies of the site.
 * The German and Dutch sites are currently set to ‘noindex’ and we plan to translate
   each page and post one by one. The language for these two sites is already set
   correctly, but the Multisite Language Switcher plugin doesn’t know which posts
   or pages are translations of the corresponding content on the original English
   site.
 * Now would be the perfect time to link the content, as the slugs for all posts
   and pages are still identical after the cloning process. This will change once
   we start translating them.
 * Is there a way to programmatically connect all the posts and pages on the German
   and Dutch sites to the corresponding content on the English site? For example,
   is it possible to loop through the English site’s posts and pages, find the equivalent
   content on the other sites using the slug as a key, and then use the other sites’
   language settings to establish the connections?
 * Thank you!
    -  This topic was modified 4 months, 1 week ago by [Michael](https://wordpress.org/support/users/mkalina/).
      Reason: Formatting

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fprogrammatically-connect-translations%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/multisite-language-switcher/assets/icon-256x256.png?rev=
   2793358)
 * [Multisite Language Switcher](https://wordpress.org/plugins/multisite-language-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multisite-language-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multisite-language-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/multisite-language-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multisite-language-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multisite-language-switcher/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Michael](https://wordpress.org/support/users/mkalina/)
 * Last activity: [4 months, 1 week ago](https://wordpress.org/support/topic/programmatically-connect-translations/)
 * Status: not resolved