Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
Could you please share the affected URL so we can check? Also, share the category name you wanted to show in the breadcrumbs.
Meanwhile, here’s our filter to control the Rank Math breadcrumbs output:
https://rankmath.com/kb/filters-hooks-api-developer/#breadcrumbs
Looking forward to helping you.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
I want to have for this page, the category “chaufffeur VTC” and not Pager404 in the breadcrumb.
Thank you.
Hello,
If you’re looking the customization for this specific post/page, then you may try adding the following filter to see if that works for you:
add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
if ( $post->ID == '1234' ) { //replace '1234' with your post/page ID
$crumbs[1][0] = 'chaufffeur VTC'; // Name of the curmb
$crumbs[1][1] = 'https://domain.com/your-category/chauffeur-vtc/'; // Replace with the correct URL
}
return $crumbs;
}, 10, 2);
Here’s how you can add filters/hooks to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how it goes. Looking forward to helping you.
Thank you.
Thanks but I search to do that for all categories and not only “chauffeur vtc
Hello,
We understand you want to replace the vendor name with the category name in your breadcrumb.
You can change the taxonomy used for the breadcrumbs by setting up your Primary Taxonomy for your post type under WordPress Dashboard > Rank Math > Titles & Meta > Posts (or any other post type).
You can open the category page to change the label of any of your categories appearing in breadcrumbs. In Rank Math’s SEO Controls, navigate to the Advanced tab and enter the label in the “Breadcrumb Title” field.
You can learn more about Rank Math ‘Titles and Meta’ options and settings here: https://rankmath.com/kb/titles-and-meta/#primary-taxonomy
and Advanced Tab in Rank Math SEO Controls here: https://rankmath.com/kb/advanced-tab/#breadcrumb-title
Don’t hesitate to get in touch if you have any other questions.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.