Sauter la navigation

Translating Related Content dans WordPress

Toolset allows you to connect content using post relationships. Here, we explain how to translate related content and how these translations appear on the site’s front-end.

Translation Settings For Related Post Types

A post relationship can involve up to three post types.

One-to-one and one-to-many relationships involve two post types: parent and child. For example, we can have “Airports” (parent) and “Flights” (children), which are two post types that are directly related.

A many-to-many relationship, on the other hand, features a so-called “intermediary” post type that connects the two main post types. For example, we can have “Clients”, connected to “Developers” through a “Contract” (intermediary post type). This is explained in more details on the page about  many-to-many relationships.

You need to set the translation mode for post-types that are related. To do this, go to WPML → Settings. There, scroll to the Post Types Translation section.

Setting translation options for related post types

WPML and Toolset allow you to have any combination translation modes for post types involved in a relationship.

Once you have selected the translation options for post types in a relationship, you can translate the posts using your favorite translation method in WPML.

When translating, you need to translate the content, but you don’t have to do anything about the related posts. All the post connections come from the ones you already made in the other language (the one where the connections already exist).

Connecting related posts from the post editing screen