Home Forums General Issues Change How Numbers Are Displayed


Change How Numbers Are Displayed

  • I am building a property website, so one of the fields is price. Naturally, with properties they have prices in the hundred of thousands or millions. I do not want to display it as 100000 but rather as 100 000 or 100,000. How will I go about doing this?

    ChatGPT recommended me to go into the PHP’s number_format() function but I was wondering if there was another way?

  • If you’re not coding the templates then the only way to alter that will be use an acf/format_value filter for the field and the php number_format() function in that filter.

  • Sorry I’m still a bit if a noob when it comes to coding. Where would I insert this?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.