Описание
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_field
function you will get preformatted number based on your settings.
Options
format
Available formats:
* 1 337.55
* 1 337,55
* 1,337.55
* 1.337,55
* 1337
* 1 337
Default parameters result
1 337.00
Compatibility
This ACF field type is compatible with:
* ACF 5
* ACF 4
Установка
- Copy the
acf-price
folder into yourwp-content/plugins
folder - 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
Часто задаваемые вопросы
- Installation Instructions
-
- Copy the
acf-price
folder into yourwp-content/plugins
folder - 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
- Copy the
Отзывы
Участники и разработчики
«Advanced Custom Fields: Price Field» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
Участники«Advanced Custom Fields: Price Field» переведён на 2 языка. Благодарим переводчиков за их работу.
Перевести «Advanced Custom Fields: Price Field» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
[1.2.1] 2017-07-15
- added translations
[1.2.0] 2017-07-02
- bugfixes
- cleanup file structure
- add support for ACF 4
[1.1.0] 2017-06-17
- added
format
option - removed support for ACF 4 (temporary)
[1.0.0] 2015-02-02
- Initation of plugin, no configuration. Only live validation.