Support » Plugin: Yoast Breadcrumbs » Exclude 'Blog' page from breadcrumbs
6 years, 8 months ago
I wish to exclude my collective ‘Blog’ page from my breadcrumbs because of my site structure.
The site uses categories for navigation and listing entries. One of which being ‘Blog’ (which must exclude the other category).
This leaves me with two breadcrumbs of ‘Blog’ when in a blog page…
This can be demonstrated here
Thanks for your help!
6 years, 7 months ago
Appreciate if this can be implemented….i’m facing the same issue
6 years, 5 months ago
look for the same thing…
This is a bug. The function does not check if a posts page has been configured in the WordPress “Reading Settings”.
Replace /wp-content/plugins/breadcrumbs/yoast-breadcrumbs.php, line 213 from this:
$bloglink = $homelink.' '.$opt['sep'].' <a href="'.get_permalink(get_option('page_for_posts')).'">'.$opt['blog'].'</a>';
$bloglink = $homelink;
if ( $page_for_posts = get_option('page_for_posts') )
$bloglink .= ' '.$opt['sep'].' <a href="'.get_permalink($page_for_posts).'">'.$opt['blog'].'</a>';
I’d like to add a patch file but it doesn’t seem to be possible to add attachments here…
6 years, 4 months ago
Perfect ! Thanks