6. Perfect WooCommerce Brands Shortcode


These are current shortcodes available for using in posts or pages.

Display brands carousel


Enables display of a slider carousel including all brands

[pwb-carousel items="10" items_to_show="5" items_to_scroll="1" image_size="thumbnail" autoplay="true"]

Params:

  • “items” [int / featured] Total number of brands
  • “items_to_show” [int] Number of brands per page
  • “items_to_scroll” [int] Number of brands to scroll each time
  • “image_size” [thumbnail / medium / large / full / custom size] Brand image size
  • “autoplay” [true / false] Carousel autoplay
  • “arrows” [true / false] Show or not the navigation arrows
  • “hide_empty” [true / false] It hides brands that have no products associated

Here is possible to visualize a sample Demo of This shortcode in action.

Display product carousel by brand


Displays a carousel slider including all products of a specified brand

[pwb-product-carousel brand="all" products="10" products_to_show="5" products_to_scroll="1" autoplay="true"]

Params:

  • “brand” [all / brand slug]
  • “products” [int] Total number of products
  • “products_to_show” [int] Number of products per page
  • “products_to_scroll” [int] Number of products to scroll each time
  • “autoplay” [true / false] Carousel autoplay
  • “arrows” [true / false] Show or not the navigation arrows

Here is possible to visualize this shorcode in action.

Products of specific brands


Shows shop products that are associated to one or more brands. This shortcode extends the default products shortcode.

[products brands="brand-slug"]

Params:

  • “brands” [comma separated brand slugs] Show product associated to this brands
  • Inherited params from the WooCommerce [products] shortcode

Here is possible to visualize this shortcode in action.

All Brands


A paginated list of all brands and their logo

[pwb-all-brands per_page="10" image_size="thumbnail" hide_empty="true" order_by="name" order="ASC" title_position="before"]

A-Z Listing


Enable alphabetical ordering for a list of all brands

[pwb-az-listing]

Display brands for a specific product


Allows printing brands of a specific product. If "product_id" is empty the shortcode will try to get this value by itself.

[pwb-brand product_id="5" image_size="thumbnail"]

Params:

  • “product_id” [int / empty] Show brands for this product
  • “as_link” [true / false] Show brand image or a text link
  • “image_size” [thumbnail / medium / large / full / custom size] Brand image size

Here is possible to visualize this shortcode in action.