Add a country field to ACF (Advanced Custom Fields)

1.3 2018-04-25 11:08 UTC


GitHub issues Packagist

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:

ACF Country field

Or multiple ones:

ACF Country field


This add-on will work with:

  • ACF version 4
  • ACF version 5 (pro)
  • PHP 5.3 or higher

Field options

  • 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')
    • country code:
      • single: FR
      • multiple: array('FR', 'DE', 'ES')
    • country name:
      • single: France
      • multiple: array('France', 'Germany', 'Spain')



Download the plugin and extract the archive to your plugins folder.


composer require hellonico/acf-country