The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippet · PHP

Remove Post Title From Yoast Breadcrumbs

Shared by Nazim Husain · May 1, 2026

59 views
4 upvotes
Back to Snippets
// Remove post title from Yoast breadcrumbs
add_filter('wpseo_breadcrumb_single_link', function( $link_output) {
	if( strpos( $link_output, 'breadcrumb_last' ) !== false ) {
		$link_output = '';
	}
	return $link_output;
} );
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

1 comment

  1. Amit Dholiya
    Amit Dholiya @amitdholiya

    Handy snippet for removing the current post title from the end of Yoast breadcrumbs. It filters wpseo_breadcrumb_single_link and clears the output for the breadcrumb_last item, so only the parent trail remains. Useful when the page title is already shown as the heading right below.

    Report

Proudly supported by