How to enable title page on breadcrumbs, but disable title post on breadcrumbs?

#435264
Viewing 3 replies - 1 through 3 (of 3 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting the support.

    Please add the below filter to the website and see if you get the desired output:

    add_filter( 'rank_math/frontend/breadcrumb/items', function( $crumbs, $class ) {
    	if(	false !== is_singular( 'post' )){
    		array_pop($crumbs);
    	}
    	return $crumbs;
    }, 10, 2);

    Here’s how you can add the filter: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how that goes.

    Thank you.

    Shoul i enable post title on breadcrumb in setting?

    Prabhat
    Rank Math agency

    Hello,

    Yes, you would need to disable the “Hide Post Title” option from Rank Math > General Settings > Breadcrumbs:

    Let us know how that goes.

    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.

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

The ticket ‘How to enable title page on breadcrumbs, but disable title post on breadcrumbs?’ is closed to new replies.