1. Home
  2. ReHub Theme
  3. Affiliate settings
  4. Brand/Taxonomy archives and Link Blocks

Brand/Taxonomy archives and Link Blocks

Our theme Provides several cool layouts to show your Stores, Brands or any other Taxonomy (Categories) archives. You can use this shotcode on homepage or for creating separate page. This can be very helpful for users to navigate on your site or to search deals from particular shops, brands.

Please, note, that if you want to use Store Taxonomy for Posts, you must enable it

For more easy use, we added shortcode

You can find it in Shortcode generator (“Taxonomy/Brand/Attribute Directory” shortcode)

Parameters of Shortcode

Most important are  taxonomy  and  type 

Taxonomy of Affiliate Store is “dealstore”, for Product Brands are “store”. Post Categories are “category”, Product Categories “product_cat”

Some examples. This shortcode will show as Link Blocks

[wpsm_tax_archive type="compactbig" taxonomy="dealstore"]

[wpsm_tax_archive type="alpha" taxonomy="dealstore"]

Such shortcode will show structured archive with sorting by alphabet.

 

[wpsm_tax_archive type="compact" taxonomy="dealstore"]

shortcode will output archive as compact list of tags.

[wpsm_tax_archive type="storegrid" taxonomy="dealstore"]

Will show grid of taxonomy. This shortcode also supports Cashback Notices which you can add when you create Store and Brand. You can also show two rows of shops with shortcode

[wpsm_tax_archive type="storegrid" taxonomy="dealstore" rows=2]

[wpsm_tax_archive type="woocategory" taxonomy="product_cat"]

This shortcode is good way to show taxonomies if you have a lot of child categories. Example is for woocommerce category

[wpsm_tax_archive type="logo" taxonomy="dealstore"]

Shortcode will show all logos for all available stores. Logos can be set for Stores when you  Edit Stores 

You can also set height of images with parameter imageheight. Default is 50

[wpsm_tax_archive type="logo" imageheight=50]

You can also show List of attribute links of woocommerce. Example

[wpsm_tax_archive taxonomy="pa_color"]

Important!!! All attributes of woocommerce has prefix pa_ before slug.

You can use Limit parameter

 limit=3 

Can be useful with Random order parameter

 random=1 

Will randomize order of returned taxonomy.

If you want to show only child taxonomy of your hierarchical taxonomy, use

 child_of=22 

will show all taxonomies which are child of Taxonomy with ID = 22

How to find taxonomy ID

 include=22,23,24 

Will include only special taxonomies by their IDs

 classcol=col_wrap_three 

By default, if you use type as compactbig, logo or compact, grid will have 5 columns. If you want to change this, you can add parameter classcol. Possible values are col_wrap_three and col_wrap_fourth, col_wrap_six