Polylang Pro
-
Hi, there is little issue with Polylang. We can have multilingual website, for example for some product. But we can have forum, that is not dedicated to specify language. So forum is global. In settings of Polylang Pro there is section for Custom Post Types. I have unchecked these checkboxes for cpt “question” and “answer”. But in urls in listing of anspress there is lang. So now I have to use filter
add_filter('ap_question_post_type_link', 'cns_ap_question_post_type_link_polylang_fix'); function cns_ap_question_post_type_link_polylang_fix( $link ) { if ( function_exists( 'pll_default_language' ) ) { $default_lang = pll_default_language(); return str_replace( '/' . $default_lang . '/', '/', $link ); } return $link; }Another problem is localization of /page/ slug. There is
ap_pagination( $paged, $answers->max_num_pages, ‘?ap_paged=%#%’, get_permalink( get_question_id() ) . ‘/page/%#%/’ );
In czech language “page” is “strana”. It would be nice, if we can translate this slug.
I have double slash => domain.cz/forum/answer//page/2/ which lead to 404. Without slash also not work.I have latest github version (2017-11-07). Thanks
The topic ‘Polylang Pro’ is closed to new replies.