Categories
Use the following tokens to identify any category page or a specific category’s page on your site:
[category]
– Category pages in general.[category:xyz]
– A specific category – you can indicate the category’s name, slug or ID.
Tags
[tag]
– A tag archive page.[tag:xyz]
– A specific tag archive page – you can indicate the tag’s name, slug or ID.
Taxonomies in General
[has_term:term:taxonomy]
– For pages related to a taxonomy term.
For example, assuming a category News, indicating[has_term:News:category]
will apply to posts that belong to the News category.
For product categories in WooCommerce, another example could be[has_term:Fruit:product_cat]
to use as a condition for products that belong to the Fruit product category.
For conditions based on product tags, one could use[has_term:cherry:product_tag]
for products that are tagged with cherry.[tax]
– A taxonomy archive page.[tax:taxonomy]
– A specific taxonomy archive page*.[tax:taxonomy:term]
– The archive page of a specific term in a taxonomy*.
*Widgets Control Pro allows to indicate combinations of taxonomies or taxonomies and terms separated by comma, see this documentation page for details. Examples only valid with Widgets Control Pro: [tax:category,tag]
or [tax:tag,product_tag:red,green,blue]