Back to blog
7 min read Content Sync

Sync a Polylang Site From Staging to Live With Its Translations

A coffee roastery runs its site in English, German and Ukrainian with Polylang. The team rewrote the “Our roastery” page and its “Visit the roastery” subpage on staging, in all three languages, with new photos. On the live site those six pages had to be replaced without breaking the language switcher: each German page still had to point to its English and Ukrainian versions, and the German “Visit” page uses the same slug, visit, as the English one.

PRO: Polylang support is part of the PRO plugin. Without PRO, Content Sync copies the content but not the languages and translation links, and the plugin says so in a notice. Tested with Import Export by RockStarLab 2.2.48 and PRO 2.1.44, Polylang Pro 3.9.2, ACF 6.8.10, WordPress 7.1.5.

Short Answer

Connect staging and live in Content Sync. On staging, open Pages in one language, tick the pages you changed, click Sync Content, leave Send with translations (Polylang) ticked and click Push to Site. The plugin sends the selected pages and their translations, gives each page its language on the live site and links them into the same translation group. Posts, custom post types and WooCommerce products work the same way.

What Has to Survive the Move

Polylang keeps a page’s language and its translation links in hidden taxonomies. A plain export and import, or a copy without Polylang support, brings the text across and loses those links, so the live site shows three unrelated pages and the language switcher sends visitors to the home page. The sync also has to keep these right:

  • Shared slugs. Polylang lets two languages use the same slug. A sync that looks pages up by slug alone can overwrite the English “visit” page with the German one.
  • Categories and tags. “Brewing” and “Zubereitung” are separate terms that Polylang links together; the German post has to land in the German term.
  • Images. With media translations turned on, each language has its own attachment with its own alt text, even when the file is the same.
  • ACF fields that point to other content: a Page Link, a Relationship list, a Taxonomy field, an Image or a Gallery. On the German post, they must point to German pages and German media.

Step 1: Connect the Two Sites

Install the free plugin and PRO on both sites and activate Polylang on both. The languages do not have to be set up on the live site first: a language that is missing there is added during the first sync. The connection itself is the same as for any other sync; How Content Sync Works explains the API key and the push and pull directions.

Step 2: Select the Pages in One Language

On staging, open Pages with the English language filter in the admin bar. Tick “Our roastery” and “Visit the roastery” and click Sync Content. Choose the live site. The option Send with translations (Polylang) is on by default:

Sync Content dialog with 2 posts selected, site QA aie6 chosen and the option Send with translations (Polylang) ticked above Push to Site and Pull from Site
Select pages in one language; their translations go along.

You only select the English pages. With the option on, the German and Ukrainian translations of both pages go along, so this push sends six pages. Untick it to send only the pages you selected, for example after fixing a typo in the German text alone.

Step 3: Check the Mapping and Push

Click Push to Site. The plugin looks for the pages on the live site and shows what it will do with each one. Pages that came from an earlier sync are matched to their copies, so they are updated rather than duplicated:

Map Posts for Sync: Our roastery and Visit the roastery are matched to Update their copies on the remote site
Pages synced before are updated, not duplicated.

Click Confirm & Sync. The matching also respects the language. Our German “Visit” page and the English one share the slug visit; each one updated its own copy on the live site, and the English page kept its English text.

Step 4: Check the Live Site

In the Pages list on the live site, all six pages are there. In the language columns, the flag marks the page’s own language and the pencils link to its two translations, so each page belongs to one translation group:

Pages list on the live site with Our roastery, Unsere Rösterei, Наша обсмажувальня and their Visit subpages, each with its language flag and pencil links to the two translations
Six pages on the live site, each linked to its translations.

Subpages keep their parent in the same language: “Besuchen Sie die Rösterei” is a child of “Unsere Rösterei”, not of the English page.

Posts with ACF Fields and Images

We pushed the post “How to dial in espresso” the same way, with its German and Ukrainian translations: 3 posts updated, 6 images copied. On the live site we checked each language:

Field German post on the live site
Featured image the German media translation of the photo
Category Zubereitung (the German term linked to Brewing)
ACF Image and Gallery German media translations
ACF Page Link the German “Visit” page
ACF Relationship the German “Our roastery” and “Visit” pages
ACF Taxonomy the German term

An image used by several languages arrives once, and each post points to the media translation of its own language when the live site has one. ACF User fields point to the same person on the live site: a user synced earlier, or a user with the same login or email. Comments come along with the post, and an ACF image on a comment also points to the file of the post’s language.

A page linked from an ACF field arrives only if you send it too. If the field points to a page that is not on the live site yet, push that page first and the post again.

Pull Works the Same Way

Pull from Site in the same dialog brings content from the live site back to staging, with its translations when the option is ticked. We pulled a post edited on the live site together with its two translations: the three staging posts were updated in place, without new copies and without losing their translation links.

With an AI Agent

Import Export by RockStarLab gives AI agents its exports, imports and Content Sync as abilities. Through the WordPress MCP Adapter, WordPress itself offers an agent only read-only abilities for site, user and environment information, so without the plugin the agent cannot do the steps above (to connect an agent, see connecting Claude Code to WordPress). With it, one request is enough:

With Import Export by RockStarLab, push the post "How to dial in espresso" with its translations from staging to live.

The agent calls rsl-ie/sync-push with post_type post, the post ID and with_translations, which is true by default. Our run returned “Successfully pushed 3 posts to the remote site”. With with_translations set to false, only the selected post is sent.

Before You Push

A push overwrites the pages it matches on the live site. Back up the live site before the first sync of a multilingual site, and push one page first to see that the languages and links land where you expect.

FAQ

Yes, with the PRO plugin. Each page or post gets its language on the receiving site and is linked to its translations there. Without PRO, the content arrives without languages and links.

Do I have to select every language?

No. Select the pages in one language. With “Send with translations (Polylang)” ticked, their translations are sent too.

What happens to pages of different languages with the same slug?

Each one is matched only to the page of its own language on the receiving site, so the English and German “visit” pages stay separate.

Are images and ACF fields translated?

The plugin keeps each language’s own images, terms and linked pages: a German post points to German media, the German category and German pages.

Do the languages have to exist on the live site?

No. A language that the receiving site does not have is added during the sync.

Get the free plugin on WordPress.org. Polylang support is part of PRO.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE