mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #80] ACF Support: Country code with Country name for Select Field #46
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yratof on GitHub (Jun 19, 2015).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/80
I recently used this project within Advanced Custom Fields, allowing a client to choose a flag from a
<select>box, which displays on the front end. I Pulled all the countries into the format that is needed for flag-icon-css to work.The only thing that is needed is the country code to be lowercase, but easier to do when working within a project.
Country codes and their respective countries.
@semplon commented on GitHub (Jul 10, 2015):
this my list in array already. maybe useful.
@jjmpsp commented on GitHub (Jul 27, 2015):
@semplon Thank you, saved me some time 👍
@ilyabreev commented on GitHub (Jan 22, 2016):
Really don't understand how this issue relates to the project.
@yratof commented on GitHub (Jan 22, 2016):
Less of an issue, more of a helper for projects where all flags can be used.
Having to manually type this list can be time consuming, so it's been done
twice here. Ideally, this should be attached on a document or a gist
On Fri, 22 Jan 2016 at 12:27, Ilya Breev notifications@github.com wrote:
Cheers,
Common sense advocate,
Andrew Smith
@felipearosemena commented on GitHub (May 10, 2016):
@yratof Thanks for this! I was trying to find a good solution for a country field for ACF. I just created a
selectfield and added your list as options. Saved me tons of time!@lipis commented on GitHub (May 10, 2016):
You can also check this (undocumented) thingy: http://flag-icon-css.lip.is/api/v1/country/ you have all the data there.. so basically do whatever you want..