Forum Replies Created

  • Looks like today’s release 5.8.8 has fixed this 🙂 Thanks to those involved.

  • @papijo You save the script written by @adammontague above into a .js file (in my case I called it acf-fix.js), then you load the script into the admin screens using the following in your functions.php file:

    add_action( 'admin_enqueue_scripts', function() {
        wp_enqueue_script( 'handle', get_stylesheet_directory_uri() . '/js/acf-fix.js', array( 'jquery' ) );
    } );

    Be sure to check the file location is correct. get_stylesheet_directory_uri() refers to the theme root and I saved acf-fix.js into a /js folder, your case may be different.

    As noted above, the script written by @adammontague works, but does trigger a JS acf not defined error, which impacts other WP admin functionality such as tabs and menu hover states. So until a fix is found I simply turn on and off this script in functions.php as I need to use it.

  • Thank you @adammontague, this solves the problem, though it would be good to know when the bug will be patched. I presume this is a bug rather than a feature because of the many ways in which people use the Google Maps field. I’d be surprised if the functionality was deliberately limited without consultation.

  • Fantastic, I had missed that. Thank you.

    As a more general question, if someone has built a third party add-on does that reduce the likeliness that it will ever be built into the ACF core? I’m very grateful that people build these add-ons, but I’d be interested to know what parameters are considered before something is built into ACF as oppose to someone building it as an add-on.

  • Hi Elliot,

    You were spot on, I had 2 fields called ‘location’ on the same page. Hadn’t realised. Thanks for your help.

    Whilst a silly mistake on my part, would it be worth adding a check so that names have to be unique?

    Thanks again.


  • This reply has been marked as private.
  • Hi Elliot,

    So with the following map:

    Field Label: Map Location
    Field name: location
    Instruction: none
    Type: Google map
    Required: no
    Center: 51.507351, -0.127758
    Zoom: 14
    Height: 300
    Conditional Logic: no

    When you create a post, the map is initially centred in London. If you add a marker and update/publish the post, the map loses the marker and centres back in London on the post edit page. If no default lat or lon are set in ACF settings then the same happens, defaulting to Melbourne.

    I’m using a fresh WP install and this is the only plugin, but I do force jQuery 1.11.0 in my functions.php file and I’ve renamed the post post type to parks. I’d be happy to give you access to take a look.


Viewing 7 posts - 1 through 7 (of 7 total)