Just to confirm that updating to Version 5.8.8 fixed the problem. Thanks a lot!
Thanks for the prompt reply, @alex-jordan
I did all you explained, I do get the “ACF IS HERE!” message in my console, and I also get the error message Uncaught ReferenceError: acf is not defined at acf-fix.js?ver=5.3.2:7
but… the fix does not work, my pins are automatically moved to the nearest road/street.
Using the fix on ACF Pro Version 5.8.7.
Let’s hope this bug is fixed any time soon…
@adammontague
Could you please specify the exact name & location of the script/file where your script must be inserted?
“in your admin” is quite vague!
I wonder how other posters found that info, but they must have found it, since they reported the fix did work.
This bug has been reported here: https://support.advancedcustomfields.com/forums/topic/google-map-location-marker-snapping-to-nearest-road/
Where in the wp-admin?
Hi!
It took me some time to find out why I had this problem on my online site running ACF version 5.8.7 whilst there was no problem on my local site still running version 5.8.4!
I am using ACF for my online flora site, where obviously I need to place pins in many places which are out in the wild, remote from any street known to Google.
Please ACF team restore the feature of placing a “sticky” pin where I want.
I have just found a similar problem in this forum discussion.
The solution given by James @acf-support is the same as the one given by @keithlock.
Interestingly, re my point #5 above is silverdarling’s remark:
Good thing is that wysiwyg.php looks like its primed to go for adding wysiwyg height via admin interface.
This is similar to gallery_height being “primed” for setting, but again WHY is this not working?
Hi Keith and many thanks for your help which set me on the right track.
1.- You did not say (because this is self-evident to advanced users) WHERE to put your code. I found out that it goes in one’s current WP theme functions.php file. Maybe somewhere else as well?
2.- Your code works OK with the relevant gallery field ID.
3.- For that code to work with all gallery fields one can change it to:
<style type="text/css">
.acf-gallery {
height: 210px;
}
</style>
4.- Now that—thanks to you—I understand how the Wrapper Attributes Class and ID work I thought I would refine your solution by creating a .galleryheight210 style in my functions.PHP file and would apply it in my gallery field’s Wrapper Attributes Class. Unfortunately this does not work, because the Wrapper’s style is not applied in the right DIV or rather is over-written later on.
5.- There remains the question of my original attempt at a solution. In file advanced-custom-fields-pro\pro\fields\class-acf-field-gallery.php line 463 is this code:
// set gallery height
$height = acf_get_user_setting('gallery_height', 400);
$height = max( $height, 200 ); // minimum height is 200
$atts['style'] = "height:{$height}px";
which seems to refer to a “user setting”. My question is: where in the ACF interface (or in one’s theme function.php) can we SET that user setting? If we cannot set it, what’s the use of getting it?
@cjke7777 you wrote “Searching for a country doesn’t appear to work”. Well for me it does work.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.