Breadcrumbs post type archive

#422138
  • Resolved Vadim Volkov
    Rank Math free

    Hey 🙂

    Applying the breadcrumbs allover I found, that it prints the singular_name of a custom post type item instead of the archive title on a custom post type archive page and on custom posts posts.
    It appears like “website / product”, when logically it should be “website / products” or “website / shop”.

    /includes/frontend/class-breadcrumbs.php
    line 386
    Suggest to replace “singular_name” with “name”, for example.

    Btw., thank you for really great plugin! We are super happy to use it on our websites, recently switched to it from a different plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Nigel
    Rank Math business

    Hello,

    Thank you for raising your concern on the implementation of Rank Math breadcrumb titles, and for the valuable insight.

    The post type archive name variable does look more appropriate as the breadcrumb title than the post type singular_name variable. In the mean time you can use a filter to customize the breadcrumb title or other breadcrumb items: https://rankmath.com/kb/filters-hooks-api-developer/#change-remove-breadcrumb-items.

    Hope that helps. Please let us know if you have questions and we always welcome new suggestions.

    Thank you very much – that helped a lot – made a crutch meanwhile XD

    Hello,

    I am happy it helped you. Do you have any other questions or do you want us to mark this as solved?

    Thank you.

    Solved 🙂

    Anas
    Rank Math business

    Hello,

    We are super happy that your issue is resolved.

    If you have any questions in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Hello,

    In the latest update of our plugin, the developers included code to switch the naming convention for the breadcrumbs in a CPT, as per your suggestion.

    Don’t hesitate to get in touch if you have any questions.

Viewing 6 replies - 1 through 6 (of 6 total)

The ticket ‘Breadcrumbs post type archive’ is closed to new replies.