Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 594 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 594 Bytes

Taxonomy Slug Filter Statamic 2.0

Custom filter to manually filter a collection by taxonomy slug

Installation

  1. Copy over the files into the site folder.

Usage

If you're on a taxonomy uri, call the filter and pass in the entry field for the taxonomy:

{{ collection filter="taxonomy_slug" field="tags" }}
   ...
{{ /collection }}

On any other URI, pass in the taxonomy slug you need as well:

{{ collection:blog filter="taxonomy_slug" slug="coffee" field="tags" }}
   ...
{{ /collection }}