ACF Price Field
ACF Price field with number formatting.
How it works
- Plugin will store your "price" as float so any time you will change desire number format there will be no reformatting problems.
- Best column type in database for "price" related fields is decimal. As WordPress keep meta as type "text" I can only cast it to float. Keep it in mind.
- Field validation is "live" thanks to https://github.com/teamdf/jquery-number.
- When you use
get_fieldfunction you will get preformatted number based on your settings.
Default parameters result
This ACF field type is compatible with:
- ACF 5
- ACF 4
- Copy the
acf-pricefolder into your
- Activate the Price plugin via the plugins admin page
- Create a new field via ACF and select the Price type
- Please refer to the description for more info regarding the field type settings
Please see readme.txt for changelog