-
Hello. I wanted to add “date” to rank math breadcrumbs. i did this but but the date is showing at the bottom. It should be the separator and after the title. I added a screenshot. How can I use this code correctly? What should be the correct code? Please help. thanks
add_filter( ‘rank_math/frontend/breadcrumb/html’, function( $html, $crumbs, $class ) {
$html = str_replace(‘<span class=”last”>’.get_the_title().'</span>’, ‘‘.get_the_title().’‘, $html) .get_the_date();return $html;
}, 10, 3);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The ticket ‘breadcrumbs problem’ is closed to new replies.