WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
Country List for Registration Drop-downs (4 posts)

  1. Collin
    Member
    Posted 1 year ago #

    I had to create a country list for the registration drop-down field using this plugin. Since the value array is non-standard, I figured I would post it here to save anyone some trouble who may need it.

    US and Canada are on top for quick selection (our user base), but obviously be changed.

    United States|United States,
    Canada|Canada,
    |,
    Afghanistan|Afghanistan,
    Albania|Albania,
    Algeria|Algeria,
    Andorra|Andorra,
    Angola|Angola,
    Antigua & Deps|Antigua & Deps,
    Argentina|Argentina,
    Armenia|Armenia,
    Australia|Australia,
    Austria|Austria,
    Azerbaijan|Azerbaijan,
    Bahamas|Bahamas,
    Bahrain|Bahrain,
    Bangladesh|Bangladesh,
    Barbados|Barbados,
    Belarus|Belarus,
    Belgium|Belgium,
    Belize|Belize,
    Benin|Benin,
    Bhutan|Bhutan,
    Bolivia|Bolivia,
    Bosnia Herzegovina|Bosnia Herzegovina,
    Botswana|Botswana,
    Brazil|Brazil,
    Brunei|Brunei,
    Bulgaria|Bulgaria,
    Burkina|Burkina,
    Burundi|Burundi,
    Cambodia|Cambodia,
    Cameroon|Cameroon,
    Canada|Canada,
    Cape Verde|Cape Verde,
    Central African Rep|Central African Rep,
    Chad|Chad,
    Chile|Chile,
    China|China,
    Colombia|Colombia,
    Comoros|Comoros,
    Congo|Congo,
    Congo (Democratic Rep)|Congo (Democratic Rep),
    Costa Rica|Costa Rica,
    Croatia|Croatia,
    Cuba|Cuba,
    Cyprus|Cyprus,
    Czech Republic|Czech Republic,
    Denmark|Denmark,
    Djibouti|Djibouti,
    Dominica|Dominica,
    Dominican Republic|Dominican Republic,
    East Timor|East Timor,
    Ecuador|Ecuador,
    Egypt|Egypt,
    El Salvador|El Salvador,
    Equatorial Guinea|Equatorial Guinea,
    Eritrea|Eritrea,
    Estonia|Estonia,
    Ethiopia|Ethiopia,
    Fiji|Fiji,
    Finland|Finland,
    France|France,
    Gabon|Gabon,
    Gambia|Gambia,
    Georgia|Georgia,
    Germany|Germany,
    Ghana|Ghana,
    Greece|Greece,
    Grenada|Grenada,
    Guatemala|Guatemala,
    Guinea|Guinea,
    Guinea-Bissau|Guinea-Bissau,
    Guyana|Guyana,
    Haiti|Haiti,
    Honduras|Honduras,
    Hungary|Hungary,
    Iceland|Iceland,
    India|India,
    Indonesia|Indonesia,
    Iran|Iran,
    Iraq|Iraq,
    Ireland (Republic)|Ireland (Republic),
    Israel|Israel,
    Italy|Italy,
    Ivory Coast|Ivory Coast,
    Jamaica|Jamaica,
    Japan|Japan,
    Jordan|Jordan,
    Kazakhstan|Kazakhstan,
    Kenya|Kenya,
    Kiribati|Kiribati,
    Korea North|Korea North,
    Korea South|Korea South,
    Kosovo|Kosovo,
    Kuwait|Kuwait,
    Kyrgyzstan|Kyrgyzstan,
    Laos|Laos,
    Latvia|Latvia,
    Lebanon|Lebanon,
    Lesotho|Lesotho,
    Liberia|Liberia,
    Libya|Libya,
    Liechtenstein|Liechtenstein,
    Lithuania|Lithuania,
    Luxembourg|Luxembourg,
    Macedonia|Macedonia,
    Madagascar|Madagascar,
    Malawi|Malawi,
    Malaysia|Malaysia,
    Maldives|Maldives,
    Mali|Mali,
    Malta|Malta,
    Marshall Islands|Marshall Islands,
    Mauritania|Mauritania,
    Mauritius|Mauritius,
    Mexico|Mexico,
    Micronesia|Micronesia,
    Moldova|Moldova,
    Monaco|Monaco,
    Mongolia|Mongolia,
    Montenegro|Montenegro,
    Morocco|Morocco,
    Mozambique|Mozambique,
    Myanmar (Burma)|Myanmar (Burma),
    Namibia|Namibia,
    Nauru|Nauru,
    Nepal|Nepal,
    Netherlands|Netherlands,
    New Zealand|New Zealand,
    Nicaragua|Nicaragua,
    Niger|Niger,
    Nigeria|Nigeria,
    Northern Ireland|Northern Ireland,
    Norway|Norway,
    Oman|Oman,
    Pakistan|Pakistan,
    Palau|Palau,
    Panama|Panama,
    Papua New Guinea|Papua New Guinea,
    Paraguay|Paraguay,
    Peru|Peru,
    Philippines|Philippines,
    Poland|Poland,
    Portugal|Portugal,
    Qatar|Qatar,
    Romania|Romania,
    Russian Federation|Russian Federation,
    Rwanda|Rwanda,
    St Kitts & Nevis|St Kitts & Nevis,
    St Lucia|St Lucia,
    Saint Vincent & the Grenadines|Saint Vincent & the Grenadines,
    Samoa|Samoa,
    San Marino|San Marino,
    Sao Tome & Principe|Sao Tome & Principe,
    Saudi Arabia|Saudi Arabia,
    Senegal|Senegal,
    Serbia|Serbia,
    Seychelles|Seychelles,
    Sierra Leone|Sierra Leone,
    Singapore|Singapore,
    Slovakia|Slovakia,
    Slovenia|Slovenia,
    Solomon Islands|Solomon Islands,
    Somalia|Somalia,
    South Africa|South Africa,
    South Sudan|South Sudan,
    Spain|Spain,
    Sri Lanka|Sri Lanka,
    Sudan|Sudan,
    Suriname|Suriname,
    Swaziland|Swaziland,
    Sweden|Sweden,
    Switzerland|Switzerland,
    Syria|Syria,
    Taiwan|Taiwan,
    Tajikistan|Tajikistan,
    Tanzania|Tanzania,
    Thailand|Thailand,
    Togo|Togo,
    Tonga|Tonga,
    Trinidad & Tobago|Trinidad & Tobago,
    Tunisia|Tunisia,
    Turkey|Turkey,
    Turkmenistan|Turkmenistan,
    Tuvalu|Tuvalu,
    Uganda|Uganda,
    Ukraine|Ukraine,
    United Arab Emirates|United Arab Emirates,
    United Kingdom|United Kingdom,
    United States|United States,
    Uruguay|Uruguay,
    Uzbekistan|Uzbekistan,
    Vanuatu|Vanuatu,
    Vatican City|Vatican City,
    Venezuela|Venezuela,
    Vietnam|Vietnam,
    Yemen|Yemen,
    Zambia|Zambia,
    Zimbabwe|Zimbabwe

    http://wordpress.org/extend/plugins/wp-members/

  2. Collin
    Member
    Posted 1 year ago #

    Looks like I left off the ASCII for a few symbols - so double-check those!

  3. bobbingwide
    Member
    Posted 1 year ago #

    Hey Collin, thanks for that. I took your original list and made something similar for a Jetpack contact form.

    [contact-field label=Country type=select required=true options=UK,etc] shortcode.

    The full list can be found here

    http://www.oik-plugins.com/examples/how-to-create-a-contact-page-using-oik-and-jetpack/jetpack-contact-field-shortcode-country-select-list/

    Caveat re ASCII still applies

  4. Hassan
    Member
    Posted 1 year ago #

    Awesome Collin! You saved me the effort.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.