Hi @striboss,
Please take a look at this article. It describes how to make custom post types and taxonomies translatable with Polylang. Locations are a Custom Post Type and Marker Categories are a Taxonomy.
Best regards,
Daniel
Yes, but I have no option to translate open user map CPT.
https://ibb.co/cLBF8LP
Can someone help me or not?
Hi @striboss,
Sorry for the delay. With the next update, Locations and Marker Categories will automatically be translatable with Polylang.
In the meantime, just add this code to the functions.php of your theme:
// enables language and translation management for 'oum-location'
add_filter( 'pll_get_post_types', 'add_cpt_to_pll', 10, 2 );
function add_cpt_to_pll( $post_types, $is_settings ) {
$post_types['oum-location'] = 'oum-location';
return $post_types;
}
// enables language and translation management for Marker Categories
add_filter( 'pll_get_taxonomies', 'add_tax_to_pll', 10, 2 );
function add_tax_to_pll( $taxonomies, $is_settings ) {
$taxonomies['oum-type'] = 'oum-type';
return $taxonomies;
}
Best regards,
Daniel