Plural Simple plural plugin for Craft

Developed by William Isted


Usage

{{ entries | length | plural('result') }} found.Output: 2 results found.

{{ 0 | plural('result') }} found.Output: 0 results found.

{{ 1 | plural('result', 'foobars') }} found.Output: 1 result found.

{{ 2 | plural('result', 'foobars') }} found.Output: 2 foobars found.

Plugin Development 101

Don't miss any Craft tips, tricks, and community updates