Skip to content
fireproofsocks edited this page Nov 1, 2014 · 3 revisions

getPageTerms

Returns a list of terms the given page is using. This is similar to getTagCloud, but it does not include a count.

Usage

Commonly, this Snippet would be placed either on the page that is being classified by Taxonomy Terms, or on the Template used by that page.

[[getPageTerms]]

It is important to note that unless you specify a taxonomy, all terms are returned. If you wish to show only Categories (and not Tags), then you would modify the Snippet call to explicitly reference the page ID of the Categories page, e.g.

[[getPageTerms? &taxonomy_id=`123`]]

Parameters

  • outerTpl Format the Outer Wrapper of List using a Chunk or a formatting string (Optional)
  • innerTpl Format the Inner Item of List using a Chunk or a formatting string.
  • page_id get terms for this specific page. Default: the current page.
  • taxonomy_id limit terms to only this taxonomy
  • limit Limit the result, default to 10 : setting it to 0 will show all
Clone this wiki locally