Adds a 'Country' field type for the Advanced Custom Fields WordPress plugin.
Display a select list of all countries in your language.
Country names are available in every language (see available list). By default, country names are localized in your current WordPress language.
Select a single value:
Or multiple ones:
This add-on will work with:
- ACF version 4
- ACF version 5 (pro)
- PHP 5.3 or higher
- Allow null: enable/disable null value (disabled by default)
- Allow multiple: enable/disable multiple countries selection (disabled by default)
- Stylised UI: enable/disable enhanced select field thanks to Select2 (enabled by default)
- Return format:
- country code and country name (default):
- single:
array('FR' => 'France')
- multiple:
array('FR' => 'France', 'DE' => 'Germany')
- single:
- country code:
- single:
FR
- multiple:
array('FR', 'DE', 'ES')
- single:
- country name:
- single:
France
- multiple:
array('France', 'Germany', 'Spain')
- single:
- country code and country name (default):
Download the plugin and extract the archive to your plugins folder.
composer require hellonico/acf-country