Add “category links” to breadcrumbs?

#51682
  • Resolved Matthew
    Rank Math business
    Content AI Creator

    Rank Math breadcrumbs only show home >> page. How can I show the post type’s category taxonomy page in the breadcrumb?

    • This topic was modified 3 years, 10 months ago by Matthew.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

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

    Rank Math doesn’t offer that option by default but you can achieve it using custom code and Rank Math filters.

    You would need to modify this filter to fit your needs:

    /**
     * Allow changing or removing the Breadcrumb items
     *
     * @param array       $crumbs The crumbs array.
     * @param Breadcrumbs $this   Current breadcrumb object.
     */
    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
    	return $crumbs;
    }, 10, 2);

    Looking forward to helping you. Thank you.

    Matthew
    Rank Math business
    Content AI Creator

    Hello,

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

    Thank you.

    Todd
    Rank Math free

    Hi Matthew,

    Did the code we provided not help?

    We are not sure what additional provided you in the sensitive data as there are no timestamps.

    Please let us know so we can help.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Add “category links” to breadcrumbs?’ is closed to new replies.