GithubHelp home page GithubHelp logo

vheissu / acf-country-field Goto Github PK

View Code? Open in Web Editor NEW
36.0 36.0 11.0 1.18 MB

A country, city and state field for Advanced Custom Fields v4 & ACF Pro

License: GNU General Public License v2.0

CSS 0.08% PHP 99.81% JavaScript 0.11%

acf-country-field's People

Contributors

vheissu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

acf-country-field's Issues

Not showing

I am using ACF V4 and the Country field is not showing under the Basic section

Localization

Hi, any ideas how i could localize city names? Thanks

Lots of issues...

Hi thanks for creating this plugin! It looks very useful. Unfortunately I can't get it to work properly. Selecting a country from the dropdown list results in a script timeout and Firefox warning implying that an asynchronous call isn't working properly. I have 16gb of RAM and tried from a fresh load of Firefox so performance isn't an issue. When I ignore the warning and wait it out, the state field is still loaded even though United States isn't selected. Furthermore, the state list was filled with duplicates. Also, when running local in debug mode I received parse errors related to acf-COUNTRY_FIELD-v4.php because you're calling add_action directly in the class rather than in the class constructor using this syntax:
add_action('wp_ajax_get_country_cities', array($this,'get_country_cities'));

Not work

I have add ACF field to woocommerce product. Countries field is visible, country chosing works properly, but when save produkt and page reload country list looks like default view. Should display selected country. Not save selected country.

United States issues

This will be a great little addition to ACF, but for the moment, there is something going very wrong with the US selection.

I think there might be just way too much data for the one little selection. The City list goes from A-Z multiple times and takes quite a while to load. Trying to open the install-data php file just crashed my IDE, too.

Breaks Wordpress

Using Wordpress 4.7.3 and ACF 4.4.11 on php 7

Wordpress stops loading

Parse error: syntax error, unexpected 'add_action' (T_STRING), expecting function (T_FUNCTION) in /srv/users/redacted/sites/redacted/public/wp-content/plugins/acf-country-field-master/acf-COUNTRY_FIELD-v4.php on line 281

South Africa Cities not loading

Upon installation, choosing "South Africa" from 'Select your country' dropdown does not populate the 'Select your city' select with South African cities....

installign

I am not able to install the plugin.

fatal error

ACF: version 4.2.2

ACF country state issue at front end

Hi

I have acf state city drop down at front end but its not working , its working fine at backend but not with front end can you please let me know what can be the issue.

Thanks

Cities table issue

Hi,

this is not a technical issue but rather a data-set organization issue.

Data-set of Cities table must be rebuilt entirely since there is no one State-Country correct matching.

This brings an inevitable malfunction of the plugin.

There is also a bug with acf_field_COUNTRY_FIELD Class in v4 and add_action() hook.

The solution is here:
#9

Cheers! :-)

Plug In Not Working - Always loads US states, never loads cities

Hello,

I have been unable to get this plugin working properly in Wordpress 5.3.1 with the newest version of ACF.
It installed okay, had some issues with the data doubling in the database, but was able to rerun the dump and table build commands and get it set fresh.
Once loaded though, it displays the Country, then City, then State. When first loaded, the Country populates with State and City having no values. This is expected.
However when I select a Country, no matter the country, The City selector seems to update but still has no cities listed, and the State selector lists every state.
Select a state, and still no cities are shown.

Any suggestions?
Thanks

Doesn't work in ACF Pro

It'd be great if you could update this to work with the new ACF Pro :)

Currently I activate the plugin, but the country field is missing.

Issue with repeater field

When I use this plugin with the repeater add-on, I get a little bug.

When I add a repeater field, the country fields are 0px wide, and the seccond is empty by default. I first need to add the post once, and then the fields becoming enabled..

screen shot 2014-04-18 at 11 28 28 am

All values appear 3 times

When I install it fresh out of the box and add Country as a new field every value in country appears 3 times and it loads very long.

See image
161013-acf-country-valuesx3

Can't Save

Hi,
The fields load as designed using ACF Pro
However, the selected values are not saved with the post/page is saved.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.