Dear Shamalli,
i had an issue after an update of my theme.
Unfortunatel i found some problems.
As i have 3 different languages on my site but all of them should show the same content i disabled the translation with a workaround.
add_filter( ‘pll_get_post_types’, ‘remove_post_translation_from_pll’, 10, 2 );
function remove_post_translation_from_pll( $post_types, $is_settings ) {
unset( $post_types[‘w2dc_listing’] );
return $post_types;
}
function turn_categoryblog_translation_off( $taxonomies, $is_settings ) {
unset( $taxonomies[‘w2dc-category’] );
return $taxonomies;
}
add_filter( ‘pll_get_taxonomies’, ‘turn_categoryblog_translation_off’, 10, 2 );
function turn_tagblog_translation_off( $taxonomies, $is_settings ) {
unset( $taxonomies[‘w2dc-location’] );
return $taxonomies;
}
add_filter( ‘pll_get_taxonomies’, ‘turn_tagblog_translation_off’, 10, 2 );
function turn_tagw2_translation_off( $taxonomies, $is_settings ) {
unset( $taxonomies[‘w2dc-tag’] );
return $taxonomies;
}
add_filter( ‘pll_get_taxonomies’, ‘turn_tagw2_translation_off’, 10, 2 );
It is actually working but all TAG-links links and the listing detail page doesnt work as it will always open a page for the language.
Do you think we can solve this problem
I use polylang and i do not want to manage every listing in every language.