The WooCommerce Breadcrumb shortcode doesn’t work for me

This topic has 17 replies, 3 voices, and was last updated 6 minutes ago ago by Luca Rossi

  • Avatar: anli75
    anli75
    Participant
    May 28, 2025 at 07:56

    hi,
    the WooCommerce Breadcrumb shortcode doesn’t work for me…it doesn’t mark the right category of the product.
    If I go to any product the category always remains the same.

    https://www.test-pongo.com/trepini/product/tre-pini-istantaneo/

    At the top of the header where the category is displayed is wrong … and also at the bottom after the description the category is wrong
    can you help me?
    thanks

    Content is visible for topic creator and
    support staff only.
    16 Answers
    Avatar: Alex Carter
    Alex Carter
    Support staff
    May 28, 2025 at 08:43

    Hello,

    Thank you for reaching out to us.

    Could you please test if the same issue occurs when using a default theme, such as Storefront? (Appearance > Themes).
    If the behavior continues regardless of the theme being used, it suggests that the problem may not be related to the theme itself. In this case, we would recommend you contact support of woocommerce plugin – https://wordpress.org/support/plugin/woocommerce/

    Warm Regards,
    The 8Theme Team

    Avatar: anli75
    anli75
    Participant
    May 28, 2025 at 16:41

    I activated the Storefront theme and it works … so it’s a problem with XStore … from the image you can see that the path works … even if the site looks messed up in terms of graphics.
    can you help me?
    thanks

    Files is visible for topic creator and
    support staff only.
    Avatar: Alex Carter
    Alex Carter
    Support staff
    May 29, 2025 at 06:57

    Hello,

    We appreciate your prompt response.

    Could you please provide temporary FTP access? We will check what can be done to help you.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Warm Regards,
    The 8Theme Team

    Avatar: anli75
    anli75
    Participant
    May 29, 2025 at 07:51

    thanks for your cooperation

    Content is visible for topic creator and
    support staff only.
    Avatar: anli75
    anli75
    Participant
    May 30, 2025 at 09:14

    have you had a chance to look at the problem?
    thanks

    Avatar: Justin
    Luca Rossi
    Support staff
    May 30, 2025 at 11:38

    Dear @anli75,

    We hope this message finds you well.

    We noticed that the primary category was previously set to “Adesivi Policloroprenici” (please see the screenshot here: https://prnt.sc/vGK44tWj4ded), which caused the breadcrumb to consistently display that category.

    To correct this, we have updated the primary category to “Auto,” and the breadcrumb now displays as expected.

    Could you kindly review the changes at your convenience?

    Thank you for your attention to this matter.

    Best regards,
    The 8Theme Team

    Avatar: anli75
    anli75
    Participant
    May 30, 2025 at 12:00

    unfortunately I see it as before with the wrong category … see image … I also updated the cache but nothing
    thanks

    https://www.test-pongo.com/trepini/product/cemen-super-extra/

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    May 31, 2025 at 02:26

    Dear @anli75,

    Could you kindly update the product linked below by changing its primary category to “Auto”?

    Product Link: https://tinyurl.com/22yesg7b
    Admin Edit Link: https://www.test-pongo.com/trepini/wp-admin/post.php?post=6633&action=edit

    Please let us know once the update has been completed or if you encounter any issues.

    Thank you in advance for your assistance.

    Best regards,
    The 8Theme Team

    Avatar: anli75
    anli75
    Participant
    May 31, 2025 at 16:01

    yes it works…..so do i have to put “auto” on all the products i create?

    Avatar: Justin
    Luca Rossi
    Support staff
    May 31, 2025 at 17:39

    Dear @anli75,

    We hope this message finds you well.

    Could you please confirm whether you previously assigned a specific product category to your items? If so, we kindly ask that you edit those products and switch the category setting to “Auto.”

    If all of your products are currently assigned to a category under the Primary Category setting, we would be happy to provide you with a custom code to automatically enforce the “Auto” option.

    Please let us know how you would like to proceed.

    Best regards,
    The 8Theme Team

    Avatar: anli75
    anli75
    Participant
    June 3, 2025 at 12:56

    thanks for your cooperation!
    i entered “auto” on all the products…how should i proceed?

    Avatar: Justin
    Luca Rossi
    Support staff
    June 3, 2025 at 17:26

    Dear @anli75,

    To ensure that the primary category for all your products is set to “Auto,” please add the following code to the functions.php file located in your child theme:

    
    add_filter('get_post_metadata', 'n2t_get_post_metadata', 999, 5);
    function n2t_get_post_metadata($value, $object_id, $meta_key, $single, $meta_type){
        if($meta_key == '_et_primary_category') return 'auto';
        return $value;
    }
    

    We hope this solution is helpful.
    If you have any further questions or need additional assistance, please don’t hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: anli75
    anli75
    Participant
    June 6, 2025 at 08:27

    ok perfect thanks … but do I have to apply this code on all my sites where I use XStore?

    Avatar: Justin
    Luca Rossi
    Support staff
    June 6, 2025 at 08:55

    Dear @anli75,

    If you have not changed the primary product category, there is no need to add the custom code.

    Kind regards,
    The 8Theme Team

    Avatar: anli75
    anli75
    Participant
    June 6, 2025 at 10:53

    thanks

    Avatar: Justin
    Luca Rossi
    Support staff
    June 6, 2025 at 10:54

    Dear @anli75,

    Thank you for reaching out to us. We appreciate your message and are happy to assist you.

    Please let us know if you have any further questions or need additional support. We are always here to help.

    Best Regards,
    8Theme’s Team

  • Viewing 17 results - 1 through 17 (of 17 total)

The issue related to '‘The WooCommerce Breadcrumb shortcode doesn’t work for me’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.