add breadcrumbs on each page wordpress without plugin code example
Example: wordpress how to display breadcrumb in child theme programmatically
add_filter( 'the_content', function( $content ) {
if( function_exists( 'rank_math_get_breadcrumbs' ) ) {
$content = rank_math_get_breadcrumbs() . $content;
}
return $content;
});