Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter caroline

    (@makeupedia)

    Ok, so I managed to fix the breadcrumbs-of-my-dreams without using YOAST *hurrah* (the results are visible on the page I needed help with)

    I would like to share the code here and ask for a second advice about it, but since it isn’t the YOAST code anylonger I will start another thread elsewhere.


    The question still remains though, if this is possible with YOAST?

    Plugin Support amboutwe

    (@amboutwe)

    In a new test install with only Yoast SEO and WooCommerce, I imported demo product content for WooCommerce. I changed a product category (Hoodies) to be a child of the category ‘T-Shirts’. After enabling Yoast SEO breadcrumbs and using the [wpseo_breadcrumb] shortcode, the child category page shows the following breadcrumb

    Home ? Tshirts ? Hoodies

    If this is the behavior you expected but are not seeing on your site, we would like to rule out any plugin or theme conflicts that may occur. The fastest way to do this is to?deactivate all non-Yoast plugins and switch to a standard theme?like?Twenty Nineteen.?

    Test this on your development or staging site, if you have one. If not, we recommend using the?Health Check & Troubleshooting?plugin. This plugin allows you to run a conflict check?without affecting normal visitors to your site.

    As we can imagine that you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process:?How to check for plugin conflicts.

    If I’ve misunderstood the behavior you are trying to reproduce, please elaborate on the issue.

    Thread Starter caroline

    (@makeupedia)

    Thank you @amboutwe ! The Yoast breadcrumbs are exactly what I’m looking for, with one modification and that is to include the parent post at the end of the trail.

    So let’s say you are at this specific burberry wallet page, the trail would be the following:
    Start -> Products -> Accessories -> Bags -> Small bags -> Wallets -> Burberry Wallets -> Small Monogram Stripe E-canvas Folding Wallet”

    So everything from “Accessories” to “Wallets” are the categories. And the end of the trail (in my example) are the product posts/pages “Burberry Wallets” and “Small Monogram Stripe E-canvas Folding Wallet”.

    I switched to Woocommerce product instead of using my own CPT, and I use twenty-sixteen child theme.

    I’m only interested in one level depth of parent -> child, (no deeper levels than that). Not sure woocommerce will work this way but I guess I’ll have to start there first and then work on the breadcrumbs.

    • This reply was modified 4 years, 9 months ago by caroline.
    Plugin Support amboutwe

    (@amboutwe)

    With default Yoast breadcrumb settings, an individual product breadcrumb will look like this:

    Home ? Products ? ProductName

    Each level is linked except the last ProductName since it’s the page you are viewing.

    Yoast SEO offers additional options to customize the breadcrumb under

    Admin > SEO > Search Appearance > Breadcrumbs (tab)

    If you change Products (product) to Category, the breadcrumbs will look like this:

    Home ? Products ? ParentCategory ? ChildCategory ? GrandchildCategory ? ProductName

    Note: Category path is generated from the first selected category unless a primary category is selected.

    Looking at the structure you are requesting, it seems that you want to merge categories with product post/pages in the breadcrumb output. This is possible but requires writing custom code to insert the product posts/pages into the breadcrumb structure.

    • This reply was modified 4 years, 9 months ago by amboutwe.
    Plugin Support Jerlyn

    (@jerparx)

    Closed. No further questions.

    Thread Starter caroline

    (@makeupedia)

    Thank you @amboutwe !

    I would like to use your last example until I’ve created a custom code. However, the category path does not work for my regular wp-post. I’ve selected Categoryfor both (post) and (product) here ->Admin > SEO > Search Appearance > Breadcrumbs (tab).

    The breadcrumb does not fetch the categories for newer posts:
    https://www.schiebeauty.se/lindex-beauty-nail-polish-recension-swatches-bilder
    but it works great on this old post:
    https://www.schiebeauty.se/apolosophy-nail-polish-vinter-2017-limited-edition

    I’ve been selecting, testing a different ways to make it work. I made sure that these two posts also had the same values etc (removing and adding categories to the post, adding all categories in the path etc), but it didn’t work.

    __________________________________________________________________________
    And for the product-pages:
    The path looks correct here:
    https://www.schiebeauty.se/produkt/apolosophy-nail-polish

    But for the child-page of that product, it doesn’t fetch the categories:
    https://www.schiebeauty.se/produkt/apolosophy-nail-polish/posh-orange-27

    I remember this worked with Breadcrumb NavXT when I tested, so I believe this should work with Yoast as well? I deactivated all other plugins, but didn’t help.

    Plugin Support amboutwe

    (@amboutwe)

    So let’s focus on one specific case then we can apply the same checks to others.

    I’ll pick this individual product: https://www.schiebeauty.se/produkt/apolosophy-nail-polish/posh-orange-27

    The breadcrumbs as of right now are:

    HEM ? PRODUKTER ? NAIL POLISH ? POSH ORANGE (27)
    ( Home > ProductArchive > CategoryArchive > ProductName )

    1. What categories are selected when you edit the product? Looking at the source code, it seems like the only category selected is ‘Nail Polish’.

    2. What do you believe the correct breadcrumb should be for this product?

    Thread Starter caroline

    (@makeupedia)

    Thank you again @amboutwe !

    “Nail Polish” here is not a category it is a parent post/page of “Posh orange 27”.

    1. The selected categories for the post “posh orange 27” are “H?nder & Naglar”, “Nagellack”, “Nagellacksf?rger” and “Apolosophy”. The path looks correct here on the parent page https://www.schiebeauty.se/produkt/apolosophy-nail-polish

    So now the posh orange path is: “Home > ProductArchive > ParentPage/Post > ProductName”

    2. The correct path I’m looking for now is “Home > ProductArchive > CategoryArchive > CategoryArchive > CategoryArchive > CategoryArchive > ProductName”

    but my main goal is to achieve:
    “Home > ProductArchive > CategoryArchive > CategoryArchive > CategoryArchive > CategoryArchive > ProductParent Post/Page > ProductName”.

    Hi,

    Yoast does not have the ability to show more than one unrelated main categoryArchive.

    So if a post has two different main categories which has been selected, Yoast is only able to output one of them as the primary. You would need to mouse over the categories and select which one you want as primary. Yoast would then show it.

    However, we thank you for suggesting a new feature for one of our plugins. We’re not working on it at the moment but we’ll create a feature request for outputting all the main categories in the breadcrumb pathway, so our developers can consider this when planning updates.

    In the meantime, we suggest signing up for our newsletter as that is where we will announce product changes and updates. You can sign-up for it here https://yoast.com/newsletter/.

    Thread Starter caroline

    (@makeupedia)

    Hello @pcosta88

    Thanks but I’m not following you now… Yoast does show all the categories including the primary for some posts.

    As I mentioned above, the path are correct here on the parent page: https://www.schiebeauty.se/produkt/apolosophy-nail-polish

    But it doesn’t output any of categories or the primary category on the child page, because here it only output the permalink structure as the path: https://www.schiebeauty.se/produkt/apolosophy-nail-polish/posh-orange-27

    Plugin Support amboutwe

    (@amboutwe)

    Breadcrumbs are very dependent on how everything is setup. We think the issue is specific to your site and/or setup. We’d need to investigate further but are unable to do so on these forums. You can?purchase Yoast SEO Premium?to receive our premium email support where we can help you further.

    Thread Starter caroline

    (@makeupedia)

    Yes it’s just a bummer because it works with Breadcrumb NavXT on my site. And I want to use less active plugins. But I’ll see what I can do further and I’m thankful for your response.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Breadcrumb not showing categories on child post’ is closed to new replies.