• Resolved atesz03

    (@atesz03)


    Hi,

    Thank you for this great plugin! I love it.

    I only have one question: is it possible to use it with shortcode? if yes, how?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi and thanks for the feedback.

    The plugin doesn’t include any shortcodes, as it is just a block. In fact, its entire logic is built around the capabilities that the Block Editor offers, and I’m not sure if it would even be possible to recreate the same UX without it.

    Thread Starter atesz03

    (@atesz03)

    Thanks for the answer. I found a way that I can still use the maps with page builders:

    • set the map in gutenberg until it looks fine.
    • click on “edit as html” and copy the html code
    • paste it into the custom html block of the page builder (for example elementor)

    I just wrote it down here in case someone is looking for a solution for the same problem.

    I was curious why someone who doesn’t use the Block Editor would care about using this plugin, but with your example above, I get it. I’m trying to think if the plugin could provide an easier way to offer what you basically described. One way that I can think would be to follow your example and provide a shortcode like [ootb post=123 block=1234] which would fetch the specific block from the specific post. This would require from you to always have the block and the post available, though. I wonder if the Block Patterns (former Reusable blocks) could be utilized to make it cleaner.

    I will think about it a bit more, and I will try to come up with a practical solution.

    Thanks again for the feedback!

    So, v.2.6.0 adds shortcode support, which essentially allows you to query the markers from existing posts. More info: https://github.com/gsarig/ootb-openstreetmap/releases/tag/2.6.0

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘shortcode’ is closed to new replies.