function.phpで次のコードを使用してください。役立つでしょう。あなたはYoastブレッドクラムプラグインをインストールする必要があります。このため
function yoastBreadcrumbs() {
$post = get_post(); ?>
<div class="wf-td">
<div class="assistive-text"></div>
<ol
class="breadcrumbs text-small" xmlns:v="http://rdf.data-vocabulary.org/#">
<li typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="<?php echo site_url();?>" title="">Home</a></li>
<li typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="<?php echo site_url()."/portfolio";?>" title="">Portfolio</a></li>
<li class="current"><?php echo $post->post_name?></li></ol></div>
<?php
}
// Override the theme's function for making breadcrumbs.
// This is for 'The7' theme, the name of the function is theme-specific.
add_filter('presscore_get_breadcrumbs', 'yoastBreadcrumbs', 1);
エラー未定義の関数yoast_breadcrumb – Abhishek
。 –