I am using
editable_post_meta( $wp_query->queried_object->ID, 'test_key', 'input' );
to edit custom fields (which are displayed in a html table).
The custom fields contain numbers, hence I would like to use number_format to give the numbers a format. I tried this:
number_format(editable_post_meta( $wp_query->queried_object->ID, 'test_key', 'input' ), 0, ',', '.');
However, somehow an extra zero is added (100 gets 1000). In firebug I see the zero is outside the fee span class. What is the proper way to use number_format with editable_post_meta?
Thanks for your help.