1. Home
  2. ReHub Theme
  3. Affiliate settings
  4. How to create archive of all brands

How to create archive of all brands

 

If you enabled “store” taxonomy, you can create also special page to show all brands (stores)

If you need archive for woocommerce, use shortcodes

[wpsm_tax_archive taxonomy="store"]

 

If you need archive of stores of posts, use

[wpsm_tax_archive taxonomy="dealstore"]

 

Shortcode has some additional parameters and can be used for creating archives for any custom taxonomy. Here, explanation for parameters:

type=”alpha”

alpha is default type, so, you can use shortcode with this parameter. Such shortcode will show structured archive with sort by alphabet. If you add parameter

type=”compact”

shortcode will output archive as list of tags. Example below. It can be useful for simple archives in sidebar.

 

type=”logo”

Shortcode will show all logos for all available stores

Another parameter

taxonomy=”product_tag”

You can add any custom taxonomy slug. By default, shortcode uses product tags

Note. Sometimes, you need to use product tag for set your store. This is useful, for example, if you use import plugins which add store name to product tag. You can add logo also to product tag

limit=”3″

Will show only 3 items

random=”1″

Will randomize order of returned taxonomy. You can use it with combination with limit parameter

Was this article helpful to you? Yes 2 No

How can we help?