Comments (2)
$field array could contain
Array
[address] => (string) "Redhill Road, Rowland's Castle PO9 6DE, UK"
[lat] => (double) 50.8869073
[lng] => (double) -0.9662887
[zoom] => (integer) 13
[place_id] => (string) "ChIJQfF3bKlFdEgRpSjEMleMGRU"
[name] => (string) "PO9 6DE"
[street_name] => (string) "Redhill Road"
[street_name_short] => (string) "Redhill Rd"
[city] => (string) "Rowland's Castle"
[state] => (string) "England"
[post_code] => (string) "PO9 6DE"
[country] => (string) "United Kingdom"
[country_short] => (string) "GB"
$field_info array could contain these fields used to display the Google Maps map.
[center_lat] => (string) ""
[center_lng] => (string) ""
[zoom] => (string) ""
[height] => (string) ""
from field-block-for-acf-pro.
We need to cater for nulls.
When the Google Maps address hadn't been set the first version of the code displayed a series of PHP Warnings.
The logic should cater for $field
values not being set.
We need to consider what to display in the block editor.
When the API key is set then the required JavaScript is enqueued. But the Google Maps don't appear in the block, even though they do appear in the Meta boxes.
What can be done about this?
Can the potential presence of a Google Maps field be used to enqueue the JavaScript?
from field-block-for-acf-pro.
Related Issues (20)
- Cater for fields with no value
- Google Chrome autocompleting Email and Password fields HOT 1
- Cater for field type `clone` HOT 1
- Internationalize and localize acf-field-block HOT 1
- Ensure ACF field block output supports different settings of the `align` attribute
- Checkbox rendering not working after cloning HOT 2
- Taxonomy rendering not working after cloning HOT 1
- Develop in situ PHPUnit tests HOT 5
- Cater for duplicate field names with different keys HOT 5
- Cater for Inactive groups HOT 1
- Rename acf-field-block to Field block for ACF PRO - permalink: field-block-for-acf-pro HOT 2
- Support for PHP 8.1 and PHP 8.2 HOT 1
- Update documentation since the blocks have the wrong field name in the editor HOT 2
- Improve plugin to satisfy wordpress.org requirements HOT 1
- Add option to display the field's label HOT 1
- Sort field names by title and improve field identification if possible HOT 1
- Teething problems with v1.3.0 on s.b/cwiccer HOT 8
- Get values from options page
- Add support for the icon picker field type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from field-block-for-acf-pro.