# Blog Page Crumb in Rank Math Breadcrumbs

> Inserts the page set as your posts page after "Home" in Rank Math breadcrumbs on single posts, categories and tags.

- Type: PHP
- Runs: Frontend only
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: rank-math, breadcrumbs, blog
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/rankmath-breadcrumb-blog-page/

## Code

```php
add_filter( 'rank_math/frontend/breadcrumb/items', function ( $crumbs ) {
    $blog_id = (int) get_option( 'page_for_posts' );

    if ( ! $blog_id || ! is_array( $crumbs ) || ! ( is_singular( 'post' ) || is_category() || is_tag() ) ) {
        return $crumbs;
    }

    $blog_url = get_permalink( $blog_id );

    foreach ( $crumbs as $crumb ) {
        if ( isset( $crumb[1] ) && $crumb[1] === $blog_url ) {
            return $crumbs;
        }
    }

    array_splice( $crumbs, 1, 0, array( array( get_the_title( $blog_id ), $blog_url, 'hide_in_schema' => false ) ) );

    return $crumbs;
} );
```

## Notes

Does nothing when Settings > Reading has no posts page.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Blog Page Crumb in Rank Math Breadcrumbs" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
