-
Hello Rank Math Support Team,
I’m writing to seek assistance with a customization issue I’m facing while trying to modify the breadcrumb display using Rank Math SEO on my WordPress website (Schema theme).
I followed the instructions provided by your support team here and attempted to use the code snippet that was shared However, despite my efforts, the desired customization has not been successfully implemented.
I’m trying to display the SEO title instead of the article title in the breadcrumbs. I incorporated the provided code snippet into my theme’s functions.php file as instructed, but the expected results were not achieved.
Could you please review the code snippet and my implementation to identify any potential issues? Additionally, if there are any alternative approaches to achieve this customization, I would greatly appreciate your guidance.
Here is the code snippet I added to my functions.php file:
$seo_title = get_post_meta( $post->ID, 'rank_math_title', true );
if ( ! empty( $seo_title ) ) {
$title = RankMath\Helper::replace_vars($seo_title);
} else {
$title = $post->post_title;
}I have ensured that the necessary variables are defined correctly and that the Rank Math plugin is up to date. However, despite these efforts, the breadcrumb customization is not working as expected.
Your expertise and guidance in resolving this matter would be greatly appreciated. If there are any additional steps I should take or any other code adjustments that need to be made, please let me know.
Thank you very much for your time and assistance. I look forward to your prompt response.
Best regards,
StepHania.
The ticket ‘Issue with Customizing Breadcrumbs Display using Rank Math SEO’ is closed to new replies.