Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
This code added in your functions.php file should solve your issues, just remember to change the URL with the one you want.
/**
* This is an example to remove the second item in your post breadcrumbs
* 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 ) {
$hasProjectCategory = $crumbs[1][0] == "Project Category" ? true : false;
if($hasProjectCategory == true){
$modifiedCrumb = array(
"0"=>esc_html('Project Category'),
"1"=>esc_url('/project-category/'), // Modify this with the URL you want
"hide_in_scheme"=>false
);
$crumbs[1] = $modifiedCrumb;
}
return $crumbs;
}, 10, 2);
Looking forward to helping you. Thank 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.