• Resolved Peter Hardy-vanDoorn

    (@petervandoorn)


    I have a couple of custom taxonomies that are properly registered to the “product” post type. Your code does not allow their archives to display the shop sidebar.

    As far as I can see, it’s your function woostify_sidebar_class() which is causing the problem as its check for a Woocommerce page is

    if ( class_exists( 'woocommerce' ) && ( is_shop() || is_product_category() || is_product_tag() ) )

    It would be more helpful if the check was

    if ( class_exists( 'woocommerce' ) && ( is_shop() || is_tax( get_object_taxonomies( 'product' ) ) ) )

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sidebars on custom product taxonomy archives’ is closed to new replies.