Issue with Breadcrumb Archive Pages

#10886
  • Resolved Bastian Fießinger
    Rank Math free

    There are some things wrong when working with archive pages and breadcrumbs.

    Output Page for posts:

    Array
    (
        [0] => Array
            (
                [0] => Home
                [1] => http://domain.com/
                [hide_in_schema] => 
            )
    
        [1] => Array
            (
                [0] => Blog
                [1] => 
                [hide_in_schema] => 
            )
    
    )

    Page for posts URL is empty..

    Output for single post type post:

    Mitglied werden
    Array
    (
        [0] => Array
            (
                [0] => Home
                [1] => http://domain.com/
                [hide_in_schema] => 
            )
    
        [1] => Array
            (
                [0] => Praxis- und Qualitätsmanagement
                [1] => http://domain.com/blog/category/praxis-und-qualitaetsmanagement/
                [hide_in_schema] => 
            )
    
        [2] => Array
            (
                [0] => Maßnahmen für mehr Patientenzufriedenheit
                [1] => http://domain.com/blog/massnahmen-fuer-mehr-patientenzufriedenheit/
                [hide_in_schema] => 
            )
    
    )

    The Page for posts is missing too.

    Output Custom Post Type Archive:

    Array
    (
        [0] => Array
            (
                [0] => Home
                [1] => http://domain.com/
                [hide_in_schema] => 
            )
    
        [1] => Array
            (
                [0] => Case
                [1] => http://domain.com/cases/
                [hide_in_schema] => 
            )
    
    )

    $crumbs[1][0] should output the cpt labels name not singular_name.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Would you mind sharing a link to the affected page on the sensitive data section so that we can advise further? Please note Rank Math makes it possible to customize breadcrumbs $args and $crumbs items and you can read more about this on this page: https://rankmath.com/kb/filters-hooks-api-developer/

    Looking forward to helping you. Thank you.

    ​​​​​​​

    @michaeldavis i know. I used the filter rank_math/frontend/breadcrumb/html to produce the arrays above. All data are just the output of the second parameter of this filter.

    Hello,

    Thanks for getting in touch!

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    I have set up a new page: http://test.proxenos.agency/

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thanks for the access.

    I have alerted our developers about this issue and we will be investigating further and then get back to you.

    We appreciate your patience. Thank you.

    Hello,

    rank_math/frontend/breadcrumb/html is not the right filter to modify the breadcrumb items. If you want to change Breadcrumb items, please use the following filter:
    https://rankmath.com/kb/filters-hooks-api-developer/#change-primary-term-output

    Can you please remove the code which you added which is showing breadcrumb array or please let us know in which file you added the code, I don’t see it in functions.php file.

    Looking forward to helping you. Thank you.

    Hey @pratik-d,

    I don’t want to modify the breadcrumb items in any way. The reason I used this filter was to create a json-LD only breadcrumb.

    The code added for the breadcrumb array is used in the index.php just to represent the output.

    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.

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

The ticket ‘Issue with Breadcrumb Archive Pages’ is closed to new replies.