{"id":87,"date":"2018-01-05T15:39:07","date_gmt":"2018-01-05T15:39:07","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management-new\/?p=87"},"modified":"2023-11-03T11:26:43","modified_gmt":"2023-11-03T11:26:43","slug":"badge-rules-for-categories","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/","title":{"rendered":"Category badge rule"},"content":{"rendered":"\n<p>This rule type can be used to assign badges to products with specific categories. Let&#8217;s analyze its settings:<\/p>\n\n\n\n<p>Go to the tab&nbsp;<strong>Badge rules<\/strong>, click on&nbsp;<strong>Add badge rule&nbsp;<\/strong>and select the rule type&nbsp;<strong>Category badge.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"911\" height=\"900\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg\" alt=\"Add category badge rule\" class=\"wp-image-962\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg 911w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge-300x296.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge-768x759.jpg 768w\" sizes=\"auto, (max-width: 911px) 100vw, 911px\" \/><\/a><\/figure>\n\n\n\n<p>Now you can start configuring the options to create your rule to automatically apply badges to your product categories.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/11\/category-badge-rule-options.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1414\" height=\"1444\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/11\/category-badge-rule-options.jpg\" alt=\"Category badge rule options\" class=\"wp-image-1160\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/11\/category-badge-rule-options.jpg 1414w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/11\/category-badge-rule-options-294x300.jpg 294w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/11\/category-badge-rule-options-1003x1024.jpg 1003w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/11\/category-badge-rule-options-768x784.jpg 768w\" sizes=\"auto, (max-width: 1414px) 100vw, 1414px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Rule name:&nbsp;<\/strong>give a name to the rule you are creating to identify it among the others;<\/li>\n\n\n\n<li><strong>Active rule:&nbsp;<\/strong>choose whether the rule will be enabled or disabled. This can be changed in the&nbsp;<em>Badge rules<\/em>&nbsp;list;<\/li>\n\n\n\n<li><strong>Categories badges: <\/strong>through this option, you can create as many category rules as you want by defining the category name in the field&nbsp;<em><strong>In product of&nbsp;<\/strong><\/em>and choosing the badge to show on products belonging to that category in the field <em><strong>Show<\/strong><\/em>. To add a new rule, just click on the button&nbsp;<em><strong>Add rule.<\/strong><\/em><\/li>\n\n\n\n<li><strong>Exclude products: <\/strong>enable if you want to exclude one or more products from this rule;<\/li>\n\n\n\n<li><strong>Excluded products: <\/strong>add the products you want to be excluded from the badge rule;<\/li>\n\n\n\n<li><strong><label for=\"_schedule\">Schedule rule:&nbsp;<\/label><\/strong><label for=\"_schedule\">enable if you want to show the badge only on a specific date range;<\/label><\/li>\n\n\n\n<li><div class=\"yith-plugin-fw-field-wrapper yith-plugin-fw-onoff-field-wrapper\"><strong>Schedule rule from:&nbsp;<\/strong>define the start and end date to show the badge. <\/div><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Users<\/h4>\n\n\n\n<p>When creating the rule, you will be able to decide the users and\/or user roles to whom the badges will be visible. Through the option&nbsp;<strong>Show badge to&nbsp;<\/strong>choose whether the badge will be shown to <em>all users<\/em> or <em>specific users only<\/em>. Add users and\/or user roles in the dedicated fields as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/49.user-product-badge-rule.jpg\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1170\" height=\"738\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/49.user-product-badge-rule.jpg\" alt=\"Category badge user options\" class=\"wp-image-871\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/49.user-product-badge-rule.jpg 1170w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/49.user-product-badge-rule-300x189.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/49.user-product-badge-rule-1024x646.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/49.user-product-badge-rule-768x484.jpg 768w\" sizes=\"auto, (max-width: 1170px) 100vw, 1170px\" \/><\/a><\/figure>\n\n\n\n<p>Here is an example of a Category badge for all products under the &#8220;Petite collection&#8221; category:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/70.category-badge-example.jpg\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1645\" height=\"900\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/70.category-badge-example.jpg\" alt=\"Category badge example\" class=\"wp-image-966\" title=\"\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/70.category-badge-example.jpg 1645w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/70.category-badge-example-300x164.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/70.category-badge-example-1024x560.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/70.category-badge-example-768x420.jpg 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/70.category-badge-example-1536x840.jpg 1536w\" sizes=\"auto, (max-width: 1645px) 100vw, 1645px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This rule type can be used to assign badges to products with specific categories. Let&#8217;s analyze its settings: Go to the tab&nbsp;Badge rules, click on&nbsp;Add badge rule&nbsp;and select the rule type&nbsp;Category badge. Now you can start configuring the options to create your rule to automatically apply badges to your product categories. Users When creating the &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Category badge rule<\/span><\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,7],"tags":[],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-badge-rules","category-premium-version-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YITH Badge Management: Category badge rule<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH Badge Management: Category badge rule\" \/>\n<meta property=\"og:description\" content=\"This rule type can be used to assign badges to products with specific categories. Let&#8217;s analyze its settings: Go to the tab&nbsp;Badge rules, click on&nbsp;Add badge rule&nbsp;and select the rule type&nbsp;Category badge. Now you can start configuring the options to create your rule to automatically apply badges to your product categories. Users When creating the &hellip; Continue reading Category badge rule\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Badge Management\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-05T15:39:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-03T11:26:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/\",\"name\":\"YITH Badge Management: Category badge rule\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg\",\"datePublished\":\"2018-01-05T15:39:07+00:00\",\"dateModified\":\"2023-11-03T11:26:43+00:00\",\"author\":{\"@id\":\"\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg\",\"width\":911,\"height\":900},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Category badge rule\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/\",\"name\":\"YITH WooCommerce Badge Management\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/author\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH Badge Management: Category badge rule","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/","og_locale":"en_US","og_type":"article","og_title":"YITH Badge Management: Category badge rule","og_description":"This rule type can be used to assign badges to products with specific categories. Let&#8217;s analyze its settings: Go to the tab&nbsp;Badge rules, click on&nbsp;Add badge rule&nbsp;and select the rule type&nbsp;Category badge. Now you can start configuring the options to create your rule to automatically apply badges to your product categories. Users When creating the &hellip; Continue reading Category badge rule","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/","og_site_name":"YITH WooCommerce Badge Management","article_published_time":"2018-01-05T15:39:07+00:00","article_modified_time":"2023-11-03T11:26:43+00:00","og_image":[{"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/","name":"YITH Badge Management: Category badge rule","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg","datePublished":"2018-01-05T15:39:07+00:00","dateModified":"2023-11-03T11:26:43+00:00","author":{"@id":""},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-content\/uploads\/sites\/271\/2023\/10\/061.add-category-badge.jpg","width":911,"height":900},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/premium-version-settings\/badge-rules-for-categories\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/"},{"@type":"ListItem","position":2,"name":"Category badge rule"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/","name":"YITH WooCommerce Badge Management","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/author\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":22,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":1161,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-json\/wp\/v2\/posts\/87\/revisions\/1161"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-badge-management\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}