Hello,
We apologize for the issue you are facing with the permalink and breadcrumbs not displaying the last category. In Rank Math, the permalink structure can be influenced by the settings you have configured for your categories and product pages.
To ensure that the last category appears in your permalinks, you may want to check the following:
-
Remove Parent Slugs Option: If this option is enabled, it will remove parent category slugs from your product page permalinks. You can find this setting in the Rank Math settings under General Settings > Permalinks.

-
Category Base Settings: Ensure that the category base is set correctly. If you want to include specific categories in your permalink, you might need to adjust these settings as well.

-
Breadcrumb Settings: For breadcrumbs, make sure that the Show Category(s) option is enabled in the Rank Math settings. This will allow the categories to be displayed in the breadcrumb trail.

If you’ve checked these settings and the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!
Sources:
WordPress Permalink Structure & Changing Individual URLs » Rank Math
How to Enable Breadcrumbs on Your Website With Rank Math SEO » Rank Math
I already done this and still not working
Hello,
You should select the 3rd child category as the primary category for your products.
Here’s a guide you can follow:
https://rankmath.com/kb/how-to-choose-a-primary-category/
Looking forward to helping you.
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.