• Resolved FredComposit

    (@warisaac)


    Hello,
    I use the plugin with woocommerce, and I encounter a navigation problem in the categories and subcategories, although the option is chosen.
    The navigation knows within the parent category and not the subcategory.

    Can you help me?
    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jo4nny8

    (@jo4nny8)

    Hi do you have a link to the site?

    For WooCommerce, the nave uses the default product_cat taxonomy so if you’ve created custom taxonomies it wont show.

    Also, can you confirm that you have multiple products assigned to this category as it will only show products from the same category, even if sub category and will not use the parent category as a fallback.

    Thread Starter FredComposit

    (@warisaac)

    Thank you for your reply

    For example :
    https://www.sunset-fishing.com/boutique/surf-casting/cannes-surf-casting/emmanchements-hybrid/oceana-revolution-surf-hybrid/

    Normally the following product should be in the category “Surf Casting > cannes > Emmanchements Hybrid”

    Out there it is a product of the category:
    Surf Casting > Cannes > Emmanchements Power

    I did not create a custom taxonomy, I use the default category of woocommerce.

    Plugin Author Jo4nny8

    (@jo4nny8)

    Can you show me a screenshot of the ticked categories in the admin section for one of the products please?

    Any item tagged in the Cannes category (that I seem to find), seems to show Emmanchements Power as a sub category of Cannes

    Accueil > Surf Casting > Cannes > “Emmanchements Power”

    If you’ve ticked CANNES & EMMANCHEMENTS POWER in the back end as categories, it will always default to CANNES as the category due to the nature of the get_terms argument used to select the next product.

    Thread Starter FredComposit

    (@warisaac)

    Here is an example of a category for a product:

    https://www.casimages.com/i/200701011637496170.png.html

    There is only the subcategory which is checked
    (she is in principal but it was just a test to see if it had an impact)

    Plugin Author Jo4nny8

    (@jo4nny8)

    Ah ok. So as I thought you’re selecting multiple categories and WordPress as a default uses the top level category as the term if you select a parent category as well as a sub category.

    The ‘primary’ term option is added by Yoast SEO and is not built into WordPress so in order for the plugin to be used by everyone, the best option is to unselect Cannes as a term as all sub categories should show on this category archive page anyway.

    I will, however look at a conditional check for yoast_seo to select primary categories of activated but this will be in a future update

    Thread Starter FredComposit

    (@warisaac)

    thank you for your reply.
    I will test with your recommendation and I will come back to you!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Sub Category navigation’ is closed to new replies.