• Resolved dev_John

    (@dev333)


    Hi there!

    We added breadcrumbs to our website (only Blog pages: Main Blog Page, Single Blog Post, Archive Pages) using “Yoast SEO” plugin.
    It is set, works and displayed this way:
    Main Blog Page > “category” > “post name”

    Our website has more than 3000 blog posts and 10 categories that have been published since 2011.
    The Yoast breadcrumbs were enabled on last week.

    ISSUE:
    We found that the breadcrumbs of many old posts have the wrong category. Instead of the correct category (name and link), the name and link of some image are displayed. This is not featured image, it is the same image for multiple posts in the same category. And it is assigned instead of a category in breadcrumbs.

    For example, correct breadcrumbs:
    Main Blog Page (/blog/) > News (/blog/category/news/) > Student Challenge (/blog/news/student-challenge/)

    BreadCrumbs with the wrong category:
    Main Blog Page (/blog/) > TableImage (/wp-content/uploads/2013/04/TableImage.jpg) > Student Challenge (/blog/news/student-challenge/)

    The last breadcrumb is not a link, it’s just the title of the current post

    I tried changing the category for these posts, but when checking they again had a title and image link instead of a category in breadcrumbs.
    More than half of all posts have the correct category in breadcrumbs (this may be the same category that is not displayed in other posts)

    PS
    All plugins, themes, and WP core are updated regularly.
    There are no other problems on the site (including WP_DEBUG mode check)

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support devnihil

    (@devnihil)

    @dev333 Can you please confirm you are using the most recent Yoast v14.4.1? You can learn more about updating here: https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/

    Also, can you confirm you are using WordPress 5.4.2? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider. Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more: https://yoast.com/why-we-dont-support-old-wordpress-versions/

    ​If you update to the most current version of WordPress, does this resolve the issue?

    If you have already confirmed both Yoast SEO and WordPress are up to date and the issue is still occurring, can you please try the following:

      1. Install & activate the Yoast Test Helper plugin
      2. Go to Tools -> Yoast Test
      3. Hit the “Reset Indexables & Migrations” button
      4. Click the “Click here to speed up your site now” button.
    Thread Starter dev_John

    (@dev333)

    Hi @devnihil ,

    Yes, as I said, all plugins, themes, and WP core are always updated to the latest version. We update everything as soon as new versions become available.

    If you have already confirmed both Yoast SEO and WordPress are up to date and the issue is still occurring, can you please try the following:

    1. Install & activate the Yoast Test Helper plugin
    2. Go to Tools -> Yoast Test
    3. Hit the “Reset Indexables & Migrations” button
    4. Click the “Click here to speed up your site now” button

    No, it didn’t help. For these posts, the image title and link to the image in breadcrumbs are still displayed instead of the post category.

    I created an STAGING copy of the site, and removed this image from the media files (via the WP admin panel), after that all the categories of posts became correct (this is about those posts that instead of the category displayed this particular image in bread crumbs).
    This action resulted in a category correction in breadcrumbs.

    But I can’t do this on a live site because we need this image as an element with the current ID (for this reason I also can’t delete and upload it again).

    Can you tell me in which table in the database I can see the relationship between posts and the specific breadcrumbs that are assigned to them? So I can manually change this? Does this make sense?

    Thank You!

    Hi,

    We would like some more information.

    1. When you say enabled, do you mean your theme/some other plugin had a feature which when selected resulted in integration with our breadcrumbs?

    OR do you mean you implemented them following our guide here https://yoast.com/help/implement-wordpress-seo-breadcrumbs/?

    We ask this because going to SEO-Search Appearance-Breadcrumbs and selecting enable does not automatically result in the breadcrumbs showing.

    Either your theme needs to already have the code to implement the breadcrumbs OR you manually added the code.

    If your theme or some other plugin had that feature, we suggest reaching out to them for more information and making sure it has been properly integrated according to our guide here: https://yoast.com/help/implement-wordpress-seo-breadcrumbs/#theme.

    2. The Yoast Breadcrumbs store in the WP_postmeta database where the meta_key is _yoast_wpseo_bctitle. So you can see the relationship. Does that match your expectatons?

    • This reply was modified 3 years, 9 months ago by Pcosta88.
    Thread Starter dev_John

    (@dev333)

    Hi @pcosta88,

    I meant that this was enabled via the Yoast SEO plugin settings.

    Of course, the code was added to the templates for the blog post page, otherwise it wouldn’t work

    <?php
    	if ( function_exists('yoast_breadcrumb') ) { ?>
    		<div class="wrap-breadcrumbs"><?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); ?></div>
    	<?php }
    ?>

    2. The Yoast Breadcrumbs store in the WP_postmeta database where the meta_key is _yoast_wpseo_bctitle. So you can see the relationship. Does that match your expectatons?

    Thanks, I’ll take a look at it now!

    Thread Starter dev_John

    (@dev333)

    Hi @pcosta88 , @devnihil ,

    I couldn’t find any matches for “yoast_wpseo_bctitle” in the whole database.

    I also found that all posts that have the wrong category in breadcrumbs (link to image instead of category) – so, in the “_posts” table, all such posts have a value added in the “post_parent” column. And the value is set as the ID of the same image.
    If I change this value to “0”, then this post has the correct category in breadcrumbs.
    I think that’s the problem.

    Is it safe for the site to replace these values for all problematic posts in the database?

    “post_parent” : “image_ID” to “0”

    Can this affect anything else? As far as I know for the type of posts – “post”, can not be set to the post_parent value in principle.

    Thank You!

    Plugin Support Michael Tiña

    (@mikes41720)

    Hi,

    Was this issue on the breadcrumbs occurring before you updated to v14.x of the Yoast SEO plugin? We would have expected that installing the Yoast Test Helper plugin and resetting the indexables and migration tables would have resolved the issue.

    We can’t be sure if changing the values in the post_parent table would affect the other functionalities of the plugin even if it would fix the breadcrumbs issue. Would it be possible for you to test this in a staging or development site?

    Plugin Support Michael Tiña

    (@mikes41720)

    No further response, so setting this to resolved in order to keep the forum overview.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Wrong category of blog posts in breadcrumbs’ is closed to new replies.