editable custom field and number format
-
Hi,
Great plugin.
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.
https://www.ads-software.com/extend/plugins/front-end-editor/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘editable custom field and number format’ is closed to new replies.