Contents
Translate custom post types and taxonomies.
In order to let Polylang see your custom post types and taxonomies these need to be public (Advanced Options).
Once they are public you can enable translations in the Polylang settings page.
Once translations for a post type or taxonomy is enabled Pods automatically switches to the correct language for relationship fields and file/media fields.
Translate non-public custom post types and taxonomies:
You can enable this through filters (PHP, see example in snippet below):
Translate & sync meta fields.
Polylang can auto-sync meta fields though there is only one option: all fields or none.
Also keep in mind that syncing meta fields doesn’t translate these fields but merely copies the data.
Translation of meta fields can only be done manually.
More info: Github #1851
Translate Pods Templates (pre Pods 2.8):
You can use the following snippet:
add_filter( 'pll_get_post_types', 'my_i18n_post_types', 10, 2 ); function my_i18n_post_types( $post_types, $is_settings ) { if ( $is_settings ) { // Add this post type to possible i18n enabled post-types (polylang settings) $post_types['_pods_template'] = '_pods_template'; } else { // Force enable this post type $post_types['_pods_template'] = '_pods_template'; } return $post_types; }