vheissu / acf-country-field Goto Github PK
View Code? Open in Web Editor NEWA country, city and state field for Advanced Custom Fields v4 & ACF Pro
License: GNU General Public License v2.0
A country, city and state field for Advanced Custom Fields v4 & ACF Pro
License: GNU General Public License v2.0
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
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.
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.
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.
I am using ACF V4 and the Country field is not showing under the Basic section
When selecting a country, the city drop down won't open until saving and refreshing .. In case using it on the user profile fields.
https://drive.google.com/file/d/0B7TY-evjcgCUTkVvc3Nab3d6QUk/edit?usp=sharing
Please if you could guide me to correct this, I would be very glad !
What should I do to fix that ?
Excellent work, Thanks a lot.
I am not able to install the plugin.
fatal error
ACF: version 4.2.2
Upon installation, choosing "South Africa" from 'Select your country' dropdown does not populate the 'Select your city' select with South African cities....
Hi, any ideas how i could localize city names? Thanks
Hi,
The fields load as designed using ACF Pro
However, the selected values are not saved with the post/page is saved.
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
To allow selecting of only states
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'));
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
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! :-)
Hi ,
Please help me through this error
Parse error: syntax error, unexpected 'add_action' (T_STRING), expecting function (T_FUNCTION) in /home/virtualqube/public_html/anna/wp-content/plugins/acf-country-field-master/acf-COUNTRY_FIELD-v4.php on line 281
I have been using http://www.advancedcustomfields.com/ plugin for creating plugin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.