breadcrumb navxt wordpress issue with polylang
Im using Wordpress polylang plugin for translation, and breadcrumb navxt plugin for breadcrumbs, but I have some issue. My default site language is Russian. On that language there are not any problems with breadcrumbs. But when I add new language and choose it, there is one problem. For example I go to the page, it should go like that:
Home page name in that language that I choose > Name of article.
But it goes like this:
Home page name in Russian > Home page name in other language > Name of article
How can I fix it?
PS for displaying main page name in Breadcrumbs plugin, I use this code in functions.php:
add_filter('bcn_breadcrumb_title', function($title, $type, $id) {
if ($type[0] === 'home') {
$title = get_the_title(get_option('page_on_front'));
}
return $title;
}, 42, 3);
链接地址: http://www.djcxy.com/p/39196.html