Can somebody tell me how to hide map-location field?
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>Hi there,
I found that my maps were not always displaying properly. To fix, i needed to replace the spaces in the address with %20.
In case it helps anyone else, here is the code I used in my template:
<?php $map = get_field('google_map');
$address = $map['address'];
$address = preg_replace('/\s+/', '%20', $address);?>
<iframe width="100%" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=<?php echo $address; ?>;t=m&z=15&iwloc=A&output=embed&iwloc=near"></iframe>
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>I used this code to render the map on my wordpress post:
<?php if(get_field('googlemap'))
{
?>
<iframe width="400" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=<?php echo the_field('googlemap'); ?>;t=m&z=10&iwloc=A&output=embed&iwloc=near"></iframe>
<?php
}
?>
I just want the map to render with the lat and longitude. Is this possible with the code above?
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>I have managed to set up the ‘Location’ field using the Advanced Custom Field Type. It works in the back-end, allowing me to select a location and set a marker using a google map. Great!
However, I can’t work out how to display the map in the front-end page/post.
I have read the how-to documentation but I am not much the wiser. Is there anything that explains it from beginning to end, telling me exactly what code to use and where to put it?
Many Thanks
Steve
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>I have a few different custom post types that I use in my theme. I have tested the map as custom field in the custom post types that gets added with a plugin that I use for core functionalities, and it works fine. From admin, adding the location to displaying it on the web page.
But when I try to use the map as a custom field in a custom post that I’ve registered in a different plugin, it shows in the admin area to add the post, but the default map is not showing there. Thus when I add a location, its not looking for a location and nothing shows. On the website’s page it displays just a default map. Which means the issue is probably not with displaying the map, since it has been working fine in the other custom post types I’ve tested it with. But more the custom field working in the admin of that custom post type.
Have you seen this happen before? Any ideas to what could cause this?
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>Hi
I am having difficulty adding a map. I’ve read the read me.txt file and added:-
1. The loin to Google api script
2. the script to initialise
3. The <div id=”map-canvas”></div>
I’ve also tried to echo out all of:-
$location = get_field(‘location’); echo $location[‘address’]; echo $location[‘coordinates’];
None show and the map is blank.
Can someone please advise what is going wrong. A step by step guide on how to output a Google Map based on location field would be so useful!
Thanks
Glennyboy
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>Having a problem with some of my listings that use this plugin. I have the address in the field, hit enter on the back end, and the backend map is correct, but on the front end it shows the wrong address. It actually shows the same weird location for all posts that this issue happens on, which is in Kansas. (see https://awesomescreenshot.com/0851po9y7e)
Has this happened to anyone else?
Is there a fix to this glitch?
I have the ‘default’ coordinates in the field’s options set to our real area, but it doesn’t show.
Any thoughts?
Another weird issue here is that if i click on the icon beside the address, it sometimes changes the address, which then doesn’t show the actual address on the front end…
Example: I may have ’19 Main St. Somecity, Ontario’
Then hitting the button gives me: ’10-20 Main St. Somecity, Ontario’, which is fine for the map, but terrible for showing the actual address on the site as people won’t get the actual address. This is a major flaw in this plugin i think.
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>Hey,
I have to split the string from the location field into:
<address> |line break|
<city> <city><state><zip>
to display in a column on my site; which is basically just a line break from the address to additional address info. Has anyone figured how to do this from the get_field(‘whateveryourlocationis’); field?
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>If you find any time, please take a look and maybe fix the issues posted on github, like older IE compatibility, broken html if search has a quote char, delete location possibility, etc.
https://github.com/elliotcondon/acf-location-field/issues
Thanks for the great plugin.
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>Hi,
I can’t get the location add-on to work. The Location field is not in the list of field types. I reinstalled the plugin a few times, and also did it manualy and checked the paths in the php files.
Can somebody tell me what I do wrong? (must be a tiny stupid thing i guess)
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>Hi,
Great plugin — one issue i have is that i need to be able to dequeue the google maps include you have in your plugin on certain pages. Could line 90 of location-v4.php possibly be changed to wp_enqueue_script instead of just an echo? Is there a reason it’s not done this way?
P.S. — sorry for the double post. I posted this over on github as well.
https://www.ads-software.com/plugins/advanced-custom-fields-location-field-add-on/
]]>I updated Custom Fields plugin and now the set of fields with location field inside of it doesn’t find the type location field. It gives me Error saying that.
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>I installed ACF and the Location add-on. In panel I can see and edit it. Is working perfect.
How do I insert it in a post? Is there a shortcode to insert your posts Locations custom fields into a real google map and not only information?
Please help!
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>After the last update of ACF, it looks like the location plugin doesn’t work anymore:
“Error Field type does not exist”.
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>Is it possible to have locations from multiple or all posts display on a single map? and if so, is there a code example?
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>Hi,
On a basic WordPress installation with ACF, I got a fatal error using Location Field add-on :
Fatal error: Internal Zend error - Missing class information for in /home/[....]/wp-content/plugins/advanced-custom-fields-location-field-add-on/location-field.php on line 415
This seems to be a bug with APC, but my hoster doesn’t allow me to disable it (and I want to keep APC on!). Is there a workaround for it ?
Best regards,
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>Hello!
i’m using repeater field with location addon, when click “add row” at post editing the repeater adds new map (location) row but the map doesnt load correctly. the map seems “broken”, only when i reload the page (updating or publishing the post) the map gets to work fine. the text input for address doesnt work well too. look at the image: screenshot. Is there a solution for this? The repeater x location are compatibles?
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>Hi,
please tell us when the new version of your great plugin will be released for the ACF version 4?
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>I am using the new Advanced Fields 4.0 and there does not seem to be a “Location” option in the “Field Types” dropdown. Does this work with ACF 4.0?
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>i updated ACF and this add-on seems to have broken. i type in an address/coordinate and there is no response.
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>Hi there,
just thought i’d post this because it was a headache trying to stitch together all the overly complicated documentation for this plugin + ACF.
<?php if(get_field('googlemap'))
{
?>
<iframe width="400" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=<?php echo the_field('googlemap'); ?>;t=m&z=10&iwloc=A&output=embed&iwloc=near"></iframe>
<?php
}
?>
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>Hi, There is an error in your path code in the constructor of the plugin. Like you mentioned in the comments, my wp folder is not in the URL.
Luckily this can easily be fixed by replacing your logic with WP’s methods plugins_url():
$this->base_uri_abs = plugins_url( basename( __DIR__ ) );
https://www.ads-software.com/extend/plugins/advanced-custom-fields-location-field-add-on/
]]>