How to make it work with Elementor? (original) (raw)
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!
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.

- ACF OpenStreetMap Field
- Frequently Asked Questions
- Support Threads
- Active Topics
- Unresolved Topics
- Reviews
Tags
- 3 replies
- 4 participants
- Last reply from: vgstef
- Last activity: 5 years, 3 months ago
- Status: not resolved