Modules / Query loops & dynamic data

Dynamic data: number, money and time-ago formats

Dynamic data: number, money and relative-date filters

Add :kiln_number, :kiln_number2, :kiln_money or :kiln_ago to a dynamic data tag to format its value as a number, a price or a relative date.

#20 of 39 modules by votes

  • On by default
  • Needs Bricks 2.4 or newer
  • Tested with Bricks 2.4.3

Tile 20 of 39, ranked by votes · Recording in progress

Where to find it in the builder

Kiln adds no control for these filters. Type the filter after the tag. It works on any dynamic data tag in a text field.

How to use it

  1. In any field that takes dynamic data, write a tag.
  2. Type a colon and one of the filter names after the tag, inside the braces.

The filters:

  • :kiln_number formats a number with your site's separators and no decimals. {acf_price:kiln_number} turns 1234 into 1,234 on an English-language site.
  • :kiln_number2 does the same with two decimals. {acf_price:kiln_number2} turns 1234 into 1,234.00. Put the number of decimals right after the name: kiln_number3 gives three. A single digit from 0 to 9 works.
  • :kiln_money formats a price. {acf_price:kiln_money} turns 25 into $25.00 on a store set to US dollars.
  • :kiln_ago turns a date into relative time. {post_date:kiln_ago} gives "3 days ago". A date in the future gives "in 3 days".

How it works with Bricks' own filters

Bricks reads each part after a colon itself and turns a number into a word count. Kiln therefore carries the decimals inside the filter name, as in kiln_number2, instead of in a second colon part.

For :kiln_ago, {post_date} and {post_modified} use the post's own timestamp, so the result does not depend on how Bricks formatted the date. Any other tag can give a Unix timestamp or a date text that Kiln can read. It reads that text in your site's timezone.

Limits

  • The filters change text output only. They do nothing in link or image fields.
  • :kiln_number and :kiln_money leave the value untouched when it is not a number. :kiln_ago does the same when it cannot read a date.
  • :kiln_ago reads post dates, Unix timestamps and dates such as 2026-10-13. Bricks formats date fields from ACF or Meta Box date pickers before Kiln sees them, so for those use Bricks' own :human_time_diff.
  • :kiln_money uses WooCommerce's price format, including the currency symbol, when WooCommerce is active. Without WooCommerce it prints the number with two decimals and no currency symbol.

Settings

None. Turn the module on in Bricks > Kiln (it is on by default).

Requirements

Bricks 2.4 or newer. :kiln_money uses WooCommerce's formatting when WooCommerce is active.