• Currently the media template tmpl-osm-marker-input to locate, enter, remove a marker is also included in frontend of website.

    Reason is in include/ACFFieldOpenstreetmap/Field/OpenStreetMap.php line 92

    add_action( 'wp_footer', array( $this, 'maybe_print_media_templates' ), 11 );
    

    Is there a reason for this? Suggested change:

    add_action( 'admin_footer', array( $this, 'maybe_print_media_templates' ), 11 );
    

    Thanks for great plugin.

  • The topic ‘Why print_media_templates in frontend?’ is closed to new replies.