archivespress-terms

This shortcode will display index for terms, for individual taxonomy.

Attributes

Shortcode has several attributes:

  • layout: name of the layout to use. Currently available: ‘basic’ and ‘compact’. Default: ‘basic’.
  • post_type: name of the post type to use. Default: ‘post’.
  • taxonomy: name of the taxonomy to display terms for. Default: ‘category’.
  • orderby: data property to use for ordering the list of terms. Supports: ‘id’, ‘name’, ‘slug’ and ‘posts’. Default: ‘posts’.
  • order: order direction. Supports: ‘asc’ and ‘desc’. Default: ‘asc’
  • columns: number of columns to use to display terms, only for ‘basic’ layout. Valid values are from 1 to 6. Default: 4.
  • class: additional CSS class names to add to the rendered block. Default: ”.
  • var-font-size: font size to set for the block. Default: ”.
  • var-line-height: line height to set for the block. Default: ”.
  • var-background: background color for individual terms. Default: ”.
  • var-color: text color for individual terms. Default: ”.

Examples

Basic Layout for categories

[[archivespress-terms]]

Compact Layout for tags

[[archivespress-terms taxonomy="post_tag" layout="compact"]]

Basic Layout with 3 columns and green background for categories

[[archivespress-terms taxonomy="category" columns=3 var-background="green"]]
0
0
410
Rate this reference

You are not allowed to rate this post.

Leave a Comment