• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

Add Brand Custom Taxonomy To WooCommerce Products Shortcode

The code in this download folder enables you to create a custom taxonomy named Brand which is added to the default WooCommerce Products admin menu like this:

Default - No Brands
Brands Custom Taxonomy Added To Products

The screenshot shows a admin link added to the WC Products menu in your WordPress Dashboard. Once clicked, you can add brand names and then assign them to single products.

You can create your brands on the Brands admin page or directly on the single Edit Product page like this :

The download folder also includes :

  • Code to create a custom class attribute for use with the default WooCommerce products shortcode
  • Code to remove “Out of Stock: Products from your products list
    Code to display your shortcodes in any hook or template file position.

Demo Video

Shows the custom products grid displaying before the single product summary when products have been assigned to a brand and are in stock. When “out of stock” and/or not assigned to a brand, products will not display in the grid.

Tested using the Twenty Twenty default theme for WordPress & the Genesis Sample theme by StudioPress.

Installation

Copy & paste the PHP code ( without the opening PHP tag ) to the end of your child themes functions file or custom functionality ( code snippets ) plugin, then go to your WordPress Dashboard > Settings > Permalinks & resave your permalinks.

You can then edit the product shortcode to add your brand names.

Download Folder

Shortcodes

Once you have installed the code, you can use the custom function from the download folder to display your products or the following shortcode in a HTML widget.

  • 3 Custom Loops for Related Products No Duplicates – WooCommerce

    $75.00
    Add to cart
  • ACF Comma Delimited Checkbox Values in Tabular Format - Genesis

    ACF Comma Delimited Checkbox Values in Tabular Format – Genesis

    $75.00
    Add to cart
  • Add Author to Woocommerce Products

    $75.00
    Add to cart
  • Add Co Authors to Woocommerce Products

    $75.00
    Add to cart
  • Add Custom Sidebar To Author Pro Books Archive

    $85.00
    Add to cart
  • Add Favorite Button To WordPress Gallery Attachment Images

    Add Favorite Button To WordPress Gallery & Attachment Images

    $75.00
    Add to cart
  • Add Like Button To Gallery & Attachment Page Images – Genesis

    $75.00
    Add to cart
  • Add Favorite Button To Gallery Images

    Add Love Button To WordPress Gallery Images

    $75.00
    Add to cart
  • Add Product Meta To Shop Loop Archives - WooCommerce

    Add Product Meta To Shop Loop Archives – WooCommerce

    $75.00
    Add to cart
  • Always Display Responsive Mobile Menu Icon In Altitude Pro

    $75.00
    Add to cart
  • Center Site Title Between Logo & Search - Essence Pro

    Center Site Title Between Logo & Search – Essence Pro

    $75.00
    Add to cart
  • Change Post Status From Published To Draft For Standard Posts & Custom Post Types – WordPress

    $75.00
    Add to cart
  • Close Add To Cart Popup Modal After Specific Time – WooCommerce

    $75.00
    Add to cart
  • Conditionally Show Hide Custom WooCommerce Checkout Fields Based on Cart Weight

    $75.00
    Add to cart
  • CSS Grid With Column Headings For Search Results - WordPress

    CSS Grid With Column Headings For Search Results – WordPress

    $75.00
    Add to cart
  • Custom Author Pro Book Archive Template

    $75.00
    Add to cart
  • Custom Field Label & Value In Table Format - Genesis

    Custom Field Label & Value In Table Format – Genesis

    $75.00
    Add to cart
  • Custom Loop 1 Before Out of Stock Products & Loop 2 After All Single Products – WooCommerce

    $75.00
    Add to cart
  • Custom Loop for Products In Custom Taxonomy Terms – WooCommerce

    $75.00
    Add to cart
  • Custom Product Loop Using WC_Product_Query - WooCommerce

    Custom Product Loop Using WC_Product_Query – WooCommerce

    $75.00
    Add to cart

Edit this shortcode to include a comma separated list of the brands you want shown.

Related WooCommerce Code Snippets

  • 3 Ways To Exclude Products From WooCommerce Related Products

WooCommerce

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.