The growing library of 300+ ready-to-use templates that work with all WordPress themes including Astra, Hello,...
Shortcode to display a linked list of terms from a product attribute, such as all brand links from a brands attribute.
Product Attributes Shortcode is a WordPress plugin that provides a shortcode to display a linked list of terms from a specific product attribute, such as brands. This can be useful for showing all terms, like brand names, in areas such as the footer of a website.
The plugin allows you to choose whether the links filter products or direct to term archives, and it includes various shortcode attributes to modify the display and functionality. It is suitable for users who want to enhance their product attribute presentation without needing to display terms associated with individual products.
Best for: This plugin is best for e-commerce websites looking to enhance product attribute visibility.
What it does well
Where it falls short
Product Attributes Shortcode offers a straightforward solution for displaying product attributes. It is a useful tool for website owners who want to improve the navigation of product terms.
Kestrel's own description of Product Attributes Shortcode, lightly tidied.
Provides a shortcode to display a linked list of terms from a product attribute, such as all brand links from a brands attribute.
This extension is intended to be used where you want to display all terms from a product attribute, e.g. to display a list of all brands in the footer of your website. It is not intended to be used to display a list of terms associated with a specific product.
Use the following shortcode replacing the x with your attribute name:
[wcpas_product_attributes attribute="x"]
If your attribute has spaces in the name then replace these with hyphens in the shortcode, if you have other characters in your attribute name see the related FAQ below.
There are various other shortcode attributes which can be used, if these are omitted the defaults are used, the available shortcode attributes are:
archive_links – 1 to enable archive links e.g. /brand/sega/, 0 to disable e.g. /shop/?filter_brand=sega, default is 0categorize – first_character to categorize the terms list by first character, default is emptycurrent_attribute_link – 1 to still display a link if the current page, 0 to disable, default is 1hide_empty – 1 to hide empty terms, 0 to disable, default is 1links_target – Use a HTML link target e.g. _blank to open links in a new window, default is emptymin_price – Use a minimum price number for links to include a minimum price filter, requires archive_links="0", default is emptymax_price – Use a maximum price number for links to include a maximum price filter, requires archive_links="0", default is emptyorder – asc or desc, default is ascorderby – Any orderby parameter, default is nameshow_counts – 1 to enable display of term counts, 0 to disable, default is 0show_descriptions – 1 to enable display of term descriptions, 0 to disable, default is 0Example shortcode using multiple shortcode attributes:
[wcpas_product_attributes attribute="brand" archive_links="0" categorize="first_character" current_attribute_link="0" hide_empty="0" links_target="_blank" min_price="50.00" max_price="500.00" order="desc" orderby="id" show_counts="1" show_descriptions="1"]
Other plugins for libraries and archives.
The growing library of 300+ ready-to-use templates that work with all WordPress themes including Astra, Hello,...
Securely upload SVG files to your media library, with built-in sanitization and advanced features for styling...
Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real...
HappyAddons packs Header Footer Builder, Megamenu, Single Post, Archive Page, & 500+ Ready Templates into...
CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.
The best WordPress templates, pattern, and layout library with 1,000+ designs built for the Gutenberg block ed...