Two posts can be perfect translations and still behave like strangers: the language switcher sends visitors to the home page and search engines see no hreflang link.
content/link-post-translation groups them as translations of one another.
At a glance
| Ability | content/link-post-translation |
| Toolset | Content — toolset/content |
| Group | Translations › Posts |
| Requires | Polylang or WPML, active on the site |
| Capability | manage_options |
| Safety | Writes data |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Abilities Manager 0.1.0 and later |
How it works
Pass a map of language code to post ID, for example { "en": 42, "fr": 88 }.
With Polylang it calls pll_save_post_translations(); with WPML it links every post to the same translation group (trid).
Each post should already have its own language set.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
translations | object | Yes | Map of language code → post ID, e.g. { "en": 5, "fr": 9 }. |
What comes back
| Name | Type | What it is |
|---|---|---|
driver | string | Which plugin handled the call. |
translations | object | The translation group as saved. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation. |
Example
Ask your assistant:
Make post 88 the French version of post 42.
It resolves to one call:
{
"ability": "content/link-post-translation",
"parameters": {
"translations": {
"en": 42,
"fr": 88
}
}
}Worth knowing
- Include every language in the group each time — the map you pass becomes the group.
- Set each post’s language first if it has none.
Related abilities
- Set Post Language — give a post its language first
- Get Post Translations — see the current group
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category