• Resolved nitrospectide

    (@nitrospectide)


    I am building a site, and have injected your breadcrumb output into the post template. I’m also using Permalink Manager Lite to manage my permalinks.

    On a sample blog post, the permalink is:

    /read/2023/10/07/sample-blog-post-title

    The only breadcrumb I’m getting is Home. Shouldn’t I at least get a link for Read?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @nitrospectide,

    Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.

    Could you please confirm if the /read/ in your URL is your blog post archive?

    If so, head over to Rank Math > General Settings > Breadcrumbs > then enable the Show Blog Page option:
    https://rankmath.com/kb/general-settings/#show-blog-page

    Hope that helps.

    Thread Starter nitrospectide

    (@nitrospectide)

    It’s not the archive page. It’s a regular page, on which I have custom content designed to be the “top page” for that site section.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @nitrospectide,

    Please navigate to WP Dashboard > Rank Math SEO > General Settings > Breadcrumbs and disable the Hide Post Title option to include the Post Name in the breadcrumbs.

    For the Read page, please add the following filter to your site:
    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
    $read = ['Read',
    'https://rankmath.com' //replace with the URL of the page
    ];
    if(is_single()) {
    array_splice( $crumbs, 1, 0, array($read) );
    }
    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, and please do not hesitate to let us know if you need our assistance with anything else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Links included in breadcrumb’ is closed to new replies.