NO BUG: Echo Function not formatting acf data

Browser: Chrome 110
OS: Windows

We are trying to pull a number field through and format the value numerically.

The function we have created is:

which does not work. However if we put in {echo:number_format(12345678)} it does as per the screen shot below

MicrosoftTeams-image (1)

Don’t think it’s possible to nest dynamic tags this way. You could just use ACFs format_value hook:

add_filter( 'acf/format_value/name=car_price', function( $value ) {
    return number_format( $value );
} );