# Remove the Current Page From All in One SEO Breadcrumbs

> Drops the final crumb (the current page) from the All in One SEO breadcrumb trail.

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

## Code

```php
add_filter( 'aioseo_breadcrumbs_trail', function ( $crumbs ) {
    if ( is_array( $crumbs ) && count( $crumbs ) > 1 && ! is_front_page() ) {
        array_pop( $crumbs );
    }

    return $crumbs;
} );
```

## Notes

The homepage keeps its single crumb.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Remove the Current Page From All in One SEO 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/
