Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,
    I use https://www.dynamic.ooo/ extensions for Elementor.
    There is a php widget in which I put “the_field(‘my_field_name’);” and it works.
    Best.

    Sorry for the noob questions but I’m not a dev.

    I have only just downloaded ACF OpenStreetMap but I can’t find an option to show in the post after submitting it.

    I have managed to set it up via custom fields and on an ACF frontend form. It appears to submit and save.

    However, I can’t find any options to pull the data dynamically? Usually, I would use an Elementor widget and find an option somewhere that displays the field to pull in but none of the widgets appears to have these options and I am not a coder so PHP raw feels like a very bad idea for myself.

    I noticed that Dynamic.ooo also have an ACF Maps widget but it looks like it’s only suitable for use with google maps?

    Thanks in advance!

    vgstef

    (@vgstef)

    This is how I managed to get the map in Elementor. I created a shortcut, than used this shortcut in a shortcut widget.

    The shortcode is : [acf_openstreetmap]

    The following code has to be put in the file functions.php to create the shortcut :

    // Openstreetmap shortcode for Elementor
    function acf_shortcode_openstreetmap() { 
     
    // Output needs to be return
    return get_field('localisation');
    } 
    // register shortcode
    add_shortcode('acf_openstreetmap', 'acf_shortcode_openstreetmap'); 
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make it work with Elementor?’ is closed to new replies.