Product Attributes Shortcode

Product Attributes Shortcode Install Statistics

0
100%
Today: 11 Yesterday: 11 All-time: 6,405 downloads
Product Attributes Shortcode Icon

Try plugin: Product Attributes Shortcode

We'll create fresh WordPress site with Product Attributes Shortcode installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Product Attributes Shortcode

Shortcode to display a linked list of terms from a product attribute, such as all brand links from a brands attribute.

2


0


0


0


0

updated: 8 months ago
since: 3 years ago
author: 99w

Description

Provides a shortcode to display a linked list of terms from a product attribute, such as all brand links from a brands attribute.

Features

  • Displays a list of all terms from a specific product attribute
  • Choose if these links filter products or go to term archives
  • List of terms does not reduce as products are filtered
  • Various shortcode attributes to modify the display

Usage

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_links1 to enable archive links e.g. /brand/sega/, 0 to disable e.g. /shop/?filter_brand=sega, default is 0
  • current_attribute_link1 to still display a link if the current page, 0 to disable, default is 1
  • hide_empty1 to hide empty terms, 0 to disable, default is 1
  • links_target – Use a HTML link target e.g. _blank to open links in a new window, default is empty
  • min_price – Use a minimum price number for links to include a minimum price filter, requires archive_links="0", default is empty
  • max_price – Use a maximum price number for links to include a maximum price filter, requires archive_links="0", default is empty
  • orderasc or desc, default is asc
  • orderby – Any orderby parameter, default is name
  • show_counts1 to enable display of term counts, 0 to disable, default is 0
  • show_descriptions1 to enable display of term descriptions, 0 to disable, default is 0

Example shortcode using multiple shortcode attributes:

[wcpas_product_attributes attribute="brand" archive_links="0" 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"]

Donate

If this product has helped you, please consider making a donation.