Comments (3)
The new format of the address is an array rather than string. This was changed because in some of the premium extensions it is possible to set the address field of the search form between a single address field ( which is the default with GEO my WP ) to multiple address field ( street, city, zipcode... ).
I am not sure if it can be easily change back to a string without breaking things. However, you can still easily retrieve the address value using $_GET['address'][0] instead of $_GET['address'].
from geo-my-wp.
Thanks for that info. While the change makes it a bit tougher since plugins like Gravity Forms aren't compatible with that array version, they did have a workaround of adding the following function incase anyone comes across the same question later on:
add_filter( 'gform_field_value_address', 'populate_address' );
function populate_address( $value ) {
return $_GET['address'][0];
}
from geo-my-wp.
Thank you for sharing the solution.
I will look into this again and see if it will be easily possible to use the address value as a string when using the single address field. And use it as an array only when using multiple address fields.
However, I believe that keeping it consistence, as an array, will make it easier by preventing GEO my WP and other plugins from checking if the value is an array or not.
I am curious to know, if you don't mind me asking, how exactly do you use GEO my WP and Gravity Forms together?
from geo-my-wp.
Related Issues (20)
- 3.0 b2 Spelling HOT 2
- Map Shortcode Embed 3.0b2 HOT 6
- Search Results Limited to State of Zip Code HOT 2
- how to get address onload HOT 2
- Spelling Errors HOT 3
- How to add transit layer
- search by tag
- Fatal error when using GMW Widget with latest update HOT 2
- GDPR solution with Borlabs Cookies
- Pagination causes search results to 404 HOT 4
- When Using Leaflet Maps - search by city breaks HOT 1
- add_hidden_status_field() js error HOT 1
- 3.6.2 bug when Pods plugin is not installed HOT 1
- Performance issue HOT 5
- Pagination causes search results to 404
- Shortcode for opening hours (hours of operations)
- Changing street name and house number within adress field HOT 1
- Getting Latitude and Longitude from a post
- Post location saved on different blog in Multisite installation HOT 1
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 geo-my-wp.