For the product category page (which is actually a Woocommerce archive type of page) use the condition:
is_product_category( ‘shirts’ )
For the product page itself use the condition:
has_term( “shirts”, “product_cat” )
Related Posts:
- get_term_meta returns false in widget
- Woocommerce Create custom product type with variations
- Remove /product/ from url. I want only category name then product name
- Pre booking doesn’t work with custom bootstrap modul in woocommerce [closed]
- WooCommerce specifc variations for specific user role [closed]
- Save custom attributes of product in woocommerce
- Filtering WooCommerce Orders by Category
- trying to get product category image in woo-coomerce
- How to add checkboxes for a woocommerce product? [closed]
- Why am I getting ( WooCommerce Services could not be installed (Could not create directory.). ) error and how to solve it ?
- Which widget to use for display category post with view more? [closed]
- WordPress Widget Not Saving Data
- Product queue for my subscription box
- Want to Show Sub categories under Categories section using Woo Commerce [closed]
- Calendar Plugins – Featured Widget [closed]
- In the archive widget, how do I sort in between two years?
- Widgets Scripts don’t load – but load when I reload the page
- WordPress plugin subscribe2 not looking the same as before migration
- how to do login using woocommerce rest api From android
- Custom Pages for Woocommerce Product-Category Pages
- Woocommerce Minimum Price for a Composite Product to add in cart
- creating a custom shop page display on archive woocommerce
- Wysiwyg editor errors
- How to make WordPress customizable for clients
- Setup page on first login on multisite
- How can I inject options into an select tag inside the widget form?
- Add content to footer – above wp_footer
- How to add wp visual editor in a custom widget?
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- WordPress Widget – Saving multidimensional arrays into $instance
- Custom plugin appears outside of the sidebar container
- Conditional tag in Widget Logic for checking if top level page or if subpage
- Char limit on custom blog-post form? [closed]
- Trying to create a table/list of my EventBrite course listings [closed]
- Woocommerce Shop page variation product button replace with add to cart button
- How do I use wp_editor() in widget form?
- How to reorder and display a feed to be chronological?
- Hide certain widgets from specific user roles in admin
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- WooCommerce search products between price range using WP_Query
- Redirect to another page using contact form 7? [closed]
- How to add Wrapper Div/container element around WordPress Widget Content
- Disabling plugin but wpenqueue is not available
- Related posts widget or plugin needed
- How do I find out what is in control over a certain part of a website?
- How to use add_submenu_page() for editors?
- PHP Error When a plugin is active
- woocommerce with custom post type
- Problem since update 3.5 [duplicate]
- Call plugin with php function
- How to disable a widget when dependent plugin is inactive?
- Sidebar widget: Randomly select text from a given set
- Best practice for including plugin output in a template without using shortcode?
- How do I use add_action on custom widget?
- Is there a way to get plugins and themes not built for multisite to work on a network subsite?
- Exact Hook to payment methods
- Restrict content based on buy woocommerce product
- How to get a list of bundled products using wp_query in woocommerce
- How can I delete a wordpress widget instance?
- Repeated Output in Widget
- Adding Static Image to WooCommerce Content-Single-Product template
- Exclude posts from widget while post is showing on home, single and categories
- Custom widget doesn’t save values from dropdown box
- Register Script in Plugin Widget
- Hide a Menu Item on Login
- WordPress Apply filter in plugin causes 500 internal error
- Add Shortcode tag in Widget/Sidebar
- How to create wordpress widget that is fixed position on the home page
- Saving widget options from class method
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- Short messages widget [closed]
- Widget’s container?
- Add SideBar/Widgets Just Below the Post
- Product count in archive page Title in WooCommerce [closed]
- Add item to the woocommerce dashboard menu from a plugin
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- How to get the particular product quantity in orders in Woocommerce [closed]
- PHP Warning: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance)
- Creating a widget and missing jQuery
- Get Every Key & Value from Array then Display All in New Line
- Woocommerce Coupon Menu and Marketing Menu missing After “Coupons can now be managed from Marketing > Coupons.” [closed]
- Get orders of a specific customer woocommerce
- WooCommerce: Force coupon for existing/registered customers [closed]
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- wc_get_template new template does not showing up
- Show icons or badges under title on product archives/category pages
- Conditional Shipping Options if Certain Products are in Cart WooCommerce
- WordPress Stock Update Programatically
- Woocommerce Backend Search by Title and SKU
- Problem with add_action
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- How can I concatenate variables to search results title? [closed]
- WooCommerce: after install hook
- How to add a new column with text fields to WooCommerce Cart List?
- Add a “View all” button on WooCommerce product archives pages
- I am trying to make a field show and save from quickedit screen
- Woocommerce: limit user to see only the products he created
- Woocommerce singe product custom gallery output works just on the first slide
- How to include a custom field in the woocommerce email?
- woocommerce search by sku and title ajax