WordPress.org

Support

Support » Plugins and Hacks » How to use Widget Logic with Woo Commerce product categories?

How to use Widget Logic with Woo Commerce product categories?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author alanft

    @alanft

    just a guess but it looks like they are saying you just need to use the is_tax tag. something like

    is_tax( ‘product_cat’, ‘kaunokirjat’);

    or the ID of that product_cat ID instead of the slug string

    Thank you!

    I really do not know how to code at all, so I found this plugin doing the work for me just great:

    http://wordpress.org/extend/plugins/widget-context/

    I got the sub-product categories easily in! no coding at all 🙂

    Anyway I know your plugin is THE LEADER 🙂

    Plugin Author alanft

    @alanft

    good stuff.

    I would have used this syntax – I have found getting the category name wrong sometimes stops the widget from working.

    Using in rather than is being the key

    in_category( ‘categoryname’ )

    is_category( ’59’ )
    When the archive page for Category 59 is being displayed. So this is to do with archive pages

    And this is slightly different

    in_category( ’59’ )
    Returns true if the current post is in the specified category id

    Hi! I’m using widget logic, but i can’t show widget in subcategories…. how can display it? Thank u

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to use Widget Logic with Woo Commerce product categories?’ is closed to new replies.