{"id":108,"date":"2018-03-07T13:09:59","date_gmt":"2018-03-07T13:09:59","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/?p=108"},"modified":"2024-12-31T15:57:15","modified_gmt":"2024-12-31T15:57:15","slug":"brand-product-shortcode","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/","title":{"rendered":"Brand Product shortcode"},"content":{"rendered":"\n<p><b>Brand Product<\/b> is a block or shortcode that allows showing the products of one or more brands.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">block<\/h5>\n\n\n\n<p>Following you find the options of the block. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Title<\/strong>: you can enter a custom title before this block<\/li>\n\n\n\n<li><strong>Paginate items<\/strong>: choose whether to paginate the items or not<\/li>\n\n\n\n<li><strong>Items per page<\/strong>: if you paginate items, you can choose how many items per page to show<\/li>\n\n\n\n<li><strong>Show only brands of the current category<\/strong>: enable this option to dinamically show only the brands of the current category. This option is useful if you are displaying this block on a category page or on a filtered page.<\/li>\n\n\n\n<li><strong>Enter the list of category slugs<\/strong> (separated with a comma) to show. Leave empty to show all categories. This option overrides the previous option.<\/li>\n\n\n\n<li><strong>Enter the list of brand slugs<\/strong> (separated with a comma) to show. Leave empty to show all brands.<\/li>\n\n\n\n<li><strong>Products to show<\/strong>:\n<ul class=\"wp-block-list\">\n<li>All products<\/li>\n\n\n\n<li>Featured products<\/li>\n\n\n\n<li>On sale products<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Order by<\/strong> &#8211; choose here how to sort the displayed brands:\n<ul class=\"wp-block-list\">\n<li>Random<\/li>\n\n\n\n<li>Post date<\/li>\n\n\n\n<li>Product title<\/li>\n\n\n\n<li>Product rate<\/li>\n\n\n\n<li>Sales count<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Order<\/strong> &#8211; if any order option has been selected, choose whether to sort them:\n<ul class=\"wp-block-list\">\n<li>Ascending <\/li>\n\n\n\n<li>Descending<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Hide free products<\/strong>: choose whether or not to hide free products from this block.<\/li>\n\n\n\n<li><strong>Show hidden products<\/strong>: choose whether or not to hide free products from this block.<\/li>\n\n\n\n<li><strong>Show a box containing a list of all matching brands for current product selection<\/strong>: it will show a box on top of the block with the names of the brands which products are displayed below. <\/li>\n\n\n\n<li><strong>Columns<\/strong>: you can choose how many brands per row to show.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1788\" height=\"2065\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg\" alt=\"Brand products with box\" class=\"wp-image-491\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg 1788w, https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box-260x300.jpg 260w, https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box-887x1024.jpg 887w, https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box-768x887.jpg 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box-1330x1536.jpg 1330w, https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box-1773x2048.jpg 1773w\" sizes=\"auto, (max-width: 1788px) 100vw, 1788px\" \/><\/a><figcaption class=\"wp-element-caption\">Brand products with box<\/figcaption><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">Shortcode<\/h5>\n\n\n\n<p>The same options are available in the shortcode as attributes. Below you find all the attributes and their accepted values. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>&#8216;title&#8217;<\/b>: shortcode title<\/li>\n\n\n\n<li><b>&#8216;per_page&#8217;<\/b>: [int] number of products to show per page; enter &#8220;-1&#8221; if you do not want product pagination<\/li>\n\n\n\n<li><b>&#8216;pagination&#8217;<\/b>: [yes \/no] enable\/disable brand pagination<\/li>\n\n\n\n<li><b>&#8216;cols&#8217;<\/b>: [int] number of columns for displaying brands<\/li>\n\n\n\n<li><b>&#8216;brand&#8217;<\/b>: [slug \/ all] product brands to show. You can specify more brand names by adding their slugs and separate them with commas or just specify &#8216;all&#8217; if you want to show them all.<\/li>\n\n\n\n<li><b>&#8216;category&#8217;<\/b>: [categories] a list of valid comma-separated category slugs, if you want to filter brands by product cat<\/li>\n\n\n\n<li><b>&#8216;product_type&#8217;<\/b>: [featured \/ on_sale \/ all] type of products to display<\/li>\n\n\n\n<li><b>&#8216;orderby&#8217;<\/b>: [rand \/ date \/ title \/ price \/ sales] sorting criteria for displayed products (random, date, name, price, discount)<\/li>\n\n\n\n<li><b>&#8216;order&#8217;<\/b>: [asc \/ desc] sorting direction (ascending or descending) subordinated to sorting criteria specified in the attribute &#8216;orderby&#8217;<\/li>\n\n\n\n<li><b>&#8216;hide_free&#8217;<\/b>: [yes \/ no] hide free products<\/li>\n\n\n\n<li><b>&#8216;show_hidden&#8217;<\/b>: [yes \/ no] show\/hide &#8216;hidden&#8217; products<\/li>\n\n\n\n<li><b>&#8216;show_brand_box&#8217;<\/b> [yes \/ no] show\/hide box shown on top of the shortcode where all brands are listed<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Example<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\">[yith_wcbr_brand_product pagination=\"yes\" per_page=\"12\" cols=\"4\" product_type=\"all\" orderby=\"rand\" order=\"DESC\" hide_free=\"no\" show_hidden=\"no\" show_brand_box=\"yes\" brand=\"yith-shirts,yith-music,globe\"]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Brand Product is a block or shortcode that allows showing the products of one or more brands. block Following you find the options of the block. Shortcode The same options are available in the shortcode as attributes. Below you find all the attributes and their accepted values. Example [yith_wcbr_brand_product pagination=&#8221;yes&#8221; per_page=&#8221;12&#8243; cols=&#8221;4&#8243; product_type=&#8221;all&#8221; orderby=&#8221;rand&#8221; order=&#8221;DESC&#8221; &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Brand Product shortcode<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,7],"tags":[],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-shortcodes","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 Brands Add-On: Brand Product shortcode<\/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-brands-add-on\/premium-version-settings\/brand-product-shortcode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH Brands Add-On: Brand Product shortcode\" \/>\n<meta property=\"og:description\" content=\"Brand Product is a block or shortcode that allows showing the products of one or more brands. block Following you find the options of the block. Shortcode The same options are available in the shortcode as attributes. Below you find all the attributes and their accepted values. Example [yith_wcbr_brand_product pagination=&quot;yes&quot; per_page=&quot;12&quot; cols=&quot;4&quot; product_type=&quot;all&quot; orderby=&quot;rand&quot; order=&quot;DESC&quot; &hellip; Continue reading Brand Product shortcode\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Brands Add-On\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-07T13:09:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-31T15:57:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1788\" \/>\n\t<meta property=\"og:image:height\" content=\"2065\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Alessio Torrisi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alessio Torrisi\" \/>\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-brands-add-on\/premium-version-settings\/brand-product-shortcode\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/\",\"name\":\"YITH Brands Add-On: Brand Product shortcode\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg\",\"datePublished\":\"2018-03-07T13:09:59+00:00\",\"dateModified\":\"2024-12-31T15:57:15+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Brand Product shortcode\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/\",\"name\":\"YITH WooCommerce Brands Add-On\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\",\"name\":\"Alessio Torrisi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"caption\":\"Alessio Torrisi\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/author\/alessio\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH Brands Add-On: Brand Product shortcode","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-brands-add-on\/premium-version-settings\/brand-product-shortcode\/","og_locale":"en_US","og_type":"article","og_title":"YITH Brands Add-On: Brand Product shortcode","og_description":"Brand Product is a block or shortcode that allows showing the products of one or more brands. block Following you find the options of the block. Shortcode The same options are available in the shortcode as attributes. Below you find all the attributes and their accepted values. Example [yith_wcbr_brand_product pagination=\"yes\" per_page=\"12\" cols=\"4\" product_type=\"all\" orderby=\"rand\" order=\"DESC\" &hellip; Continue reading Brand Product shortcode","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/","og_site_name":"YITH WooCommerce Brands Add-On","article_published_time":"2018-03-07T13:09:59+00:00","article_modified_time":"2024-12-31T15:57:15+00:00","og_image":[{"width":1788,"height":2065,"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg","type":"image\/jpeg"}],"author":"Alessio Torrisi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alessio Torrisi","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/","name":"YITH Brands Add-On: Brand Product shortcode","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg","datePublished":"2018-03-07T13:09:59+00:00","dateModified":"2024-12-31T15:57:15+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-content\/uploads\/sites\/198\/2022\/04\/Brand-products-with-box.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/premium-version-settings\/brand-product-shortcode\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/"},{"@type":"ListItem","position":2,"name":"Brand Product shortcode"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/","name":"YITH WooCommerce Brands Add-On","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5","name":"Alessio Torrisi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","caption":"Alessio Torrisi"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/author\/alessio\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":6,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":639,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-json\/wp\/v2\/posts\/108\/revisions\/639"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-brands-add-on\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}