Categories Not Showing in breadcrumbs in posts
In yoast seo settings >> click which taxonomy type cateogires or tags show in breadcumbs for post types pages or posts.
enabled cateogries now showing full path.
Pages breadcumbs not showing parent child pages path
fix: add as child page attribute select parent
Home » Salary 7th CPC pay matrix table for central govt employees » SSC CHSL Posts list salary syllabus details LDC JSA DEO
Tip: 1st enbale in your theme just like genesis show breadcumbs on page , posts
WordPress breadcumbs showing entire title
If your WordPress breadcrumbs are displaying the entire title of a page instead of a concise summary, it usually means that the settings in your SEO plugin (like Yoast SEO) are not configured to properly truncate the titles for the breadcrumbs; you likely need to adjust the “Breadcrumb Title” setting to limit the character count displayed.
Yoast seo truncate breadcrumb
we need some piece of code to function.php yoc find on github
Yoast Seo>> Settings>>Advanced>> Breadcumbs
How to fix old URLs in Yoast SEO breadcrumbs
Note: problem fixed after resetting yoast seo meta data table called indexable.
it likely means there’s a caching issue, outdated permalink settings, or a problem with how Yoast is reading your site structure; to fix this, you can try clearing your website cache, updating your permalinks, re-indexing your site in Yoast.
- Install and activate the Yoast Test Helper plugin.
- In the WordPress admin panel, go to “Tools” » “Yoast Test”. (The Yoast SEO upgrade routine was executed.)
- Click the
Reset Indexables tables & migrations
button. (caution lose data)
Indexables store the metadata for all your pages in a separate database table – the Indexables.
Because some of your SEO data was reset by the Yoast Test Helper, your SEO data needs to be reprocessed. We estimate this will take a couple of minutes.
- Go to “SEO” » “Tools”.
- Click the
Start SEO data optimization
button. - Check the URLs in the breadcrumbs again – they should now be correct.
- Re-index your site in Yoast:
- Access Yoast SEO settings > Tools.
- Click “Process and speed up site” to re-scan your website and update the data.
- Access Yoast SEO settings > Tools.
Rank Math SEO breadcumbs better
WordPress Dashboard → Rank Math SEO → General Settings → Breadcrumbs provides you with a series of options to set up and modify the breadcrumbs on your site.
Code approch to function.php
function wpb_custom_breadcrumbs() {
// Breadcrumbs for single post
if (is_single()) {
global $post;
$categories = get_the_category($post->ID);
if ($categories) {
$output = '<a href="' . get_permalink(get_option('page_for_posts')) . '">Blog</a> » ';
foreach ($categories as $category) {
$output .= '<a href="' . get_category_link($category->term_id) . '">' . $category->name . '</a> » ';
}
$output .= get_the_title();
return $output;
}
}
// Your existing breadcrumb code here for other page types...
}
single.php
echo wpb_custom_breadcrumbs();