Shortcodes Posts

Formatting a custom number field to add commas 1

Formatting a custom number field to add commas

By Pieter Hartsook / February 9, 2020 / 1 Comment
Posted in , , , ,

I needed to format a number field (999,999,999), coming from a custom field number-format (no other characters permitted in the number entry field). No “$” no commas or decimal points, etc. to output as a normal currency format. When displaying the number I could add a “$” in front of the number, but couldn’t find a way to format the number since you can’t do that with CSS.

Read More
Skip to content