-
Hello,
I am a previous user of yoast and I need to guide me to have same fix for rank math.
So I have created some post type direct in functions.php and while using yoast I have added this snippet so I can add before the breadcrumbs the parent title.add_filter( 'wpseo_breadcrumb_links', 'servicii_yoast_fix' ); function servicii_yoast_fix( $links ) { global $post; if( is_singular('servicii')){ $breadcrumb[] = array( 'url' => site_url( '/servicii/' ), 'text' => 'Servicii', ); array_splice($links, 1, -2, $breadcrumb); } return $links; }
I would like to know if there is any filter available for rank math too.
Many thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The ticket ‘Breadcrumbs rankmath for custom post type’ is closed to new replies.