Hello @lfedele,
Thank you for contacting support.
Please make sure that you enable the option to add the blog slug to the breadcrumbs under WordPress Dashboard > Rank Math > General Settings > Breadcrumbs.
https://rankmath.com/kb/breadcrumbs/
Hope this helps solve your issues.
Don’t hesitate to get in touch if you have any other questions.
Hello @rankmathteam,
thank you for your reply. I already did it, but it did not help.
Could you provide any further suggestion, please?
Hello @lfedele,
It seems to be working fine on our end. It seems like your theme is generating the paginated pages differently. In this case, you can use the following filter to add Blog in the breadcrumbs of the paginated pages:
add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
$url = home_url($_SERVER['REQUEST_URI']);
$blog = ['Blog',
'https://www.ingigni.com/blog/'
];
if(strpos($url, 'blog/page/')) {
array_splice( $crumbs, 1, 0, array($blog) );
return $crumbs;
}
return $crumbs;
}, 10, 2);
Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps.
Hello @rankmathteam,
thank you so much for your kind help, the code you provided solved the issue.
Hello @lfedele
Glad that helped.
If it isn’t too much to ask for – would you mind leaving us a review here?
https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post
It only takes a couple of minutes but helps us tremendously.
It would mean so much to us and would go a really long way.
Thank you.
Hello @rankmathteam,
I just did it. Glad to provide my contribution.