我正在使用 Yoast Seo 插件在我的 Headers 下显示面包屑 .
我已将下面的代码放在 functions.php 中,将默认 author
网址更改为 about/team
.
add_action('init','change_author_permalinks');
function change_author_permalinks()
{
global $wp_rewrite;
$wp_rewrite->author_base = '/about/team';
$wp_rewrite->author_structure = '/' . $wp_rewrite->author_base. '/%author%';
}
所以 mysite.com/author/author name
将 mysite.com/about/team/author name
.
当有人访问_2950310时,我希望面包屑是这样的:
作者姓名«خانه»دربارهما»اعضا
但它显示了存档的路径:
作者姓名خانه»بایگانی
有没有办法手动覆盖它?
Translations:
-
خانه:首页
-
دربارهما:关于(关于我们)
-
اعضا:团队
-
بایگانی:存档