Common Issues
Common IssuesPosts are not translated

Posts are not translated

If your custom posts are not translated, the Settings need to be configured according to your needs.

Browse the logs to find a warning entry that will explain the issue.

The most likely issues are:

  • No translation entries exist
  • Translation entries do not have the expected status

No translation entries exist

If you see a warning like this:

Warning [Query "translate-customposts"] Execution successful, but with warnings: 🟑 No custom post(s) was translated, because no translation entries exist. In the plugin Settings, enable the 'Automatic creation of translation entries' option for CPT 'post'; or otherwise, create those translation entries using Polylang (clicking on the '+' link), then trigger the translation.

...that means that the translation entries for your custom posts were not created (before triggering the translation).

In the plugin Settings under General Configuration, check if the Automatic creation of translation entries option is enabled for that CPT:

Setting the 'Automatic creation of translation entries' option
Setting the 'Automatic creation of translation entries' option

If it is not, and that CPT uses wp_insert_post to create entries, then enable that option.

Otherwise, you must first create those translation entries using Polylang (clicking on the + link), then trigger the translation.

Translation entries do not have the expected status

If you see a warning like this:

Warning [Query "translate-customposts"] Execution successful, but with warnings: 🟑 No custom post(s) was translated, because the translation entries (CPT: 'post', IDs: [48634]) do not have the expected status: 'draft'. If this is unintended, either update the  and/or 'Status to synchronize' options in the plugin Settings, or change the status of the translation entries accordingly.

...that means that the translation entries have a different status than the one configured in the plugin Settings.

For instance, if the Status to update option is set to draft, and the translation entries have a status of publish, then the translation will not be created.

In the plugin Settings under General Configuration, check if the Status to update option is set to the expected status:

Setting the 'Status to update' option
Setting the 'Status to update' option

Otherwise, change the status of the translation entries accordingly