WordPress.org

Ready to get started?Download WordPress

Forums

Yoast Breadcrumbs
Exclude 'Blog' page from breadcrumbs (5 posts)

  1. alexborton
    Member
    Posted 3 years ago #

    Hello -

    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!

  2. tessina
    Member
    Posted 3 years ago #

    Appreciate if this can be implemented....i'm facing the same issue

  3. Jguiss Webmaster
    Member
    Posted 3 years ago #

    look for the same thing...

  4. M_Olivier
    Member
    Posted 3 years ago #

    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>';

    to this:

    $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...

  5. Jguiss Webmaster
    Member
    Posted 3 years ago #

    Perfect ! Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic