add_filter( 'rank_math/frontend/breadcrumb/html', function( $html, $crumbs, $class ) {
    // 1. Obtenemos el texto del último elemento (la página actual)
    $last_crumb = end( $crumbs );
    $last_text  = $last_crumb[0]; // El título visible en la miga de pan

    // 2. Obtenemos de forma segura la URL de la página actual
    global $wp;
    $current_url = esc_url( home_url( add_query_arg( array(), $wp->request ) ) );

    // 3. Definimos cómo pinta Rank Math el último elemento por defecto y cómo queremos que sea
    $search_pattern = '<span class="last">' . $last_text . '</span>';
    $replace_output = '<span class="last"><a href="' . $current_url . '">' . $last_text . '</a></span>';

    // 4. Reemplazamos el texto plano por el enlace HTML
    $html = str_replace( $search_pattern, $replace_output, $html );

    return $html;
}, 10, 3 );<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//www.gesinflot.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://www.gesinflot.com/post-sitemap.xml</loc>
		<lastmod>2026-05-12T23:21:05+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.gesinflot.com/page-sitemap.xml</loc>
		<lastmod>2026-07-04T02:47:01+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->