• Resolved philbee

    (@philbee)


    Hey,
    great plugin. I’m trying to use the [sbs_openstreetmap] shortcodes inside a PHP template (to be able to send post metadata to the map).
    However, I guess the mapping asset files only get loaded on pages that have a SBS block or shortcode in the post content (as per https://ww.wp.xz.cn/support/topic/assets-loaded-on-all-pages/).
    Is there a simple way to get the assets to load?
    Thanks, Phil

Viewing 1 replies (of 1 total)
  • Plugin Author Step-Byte-Service GmbH

    (@stepbyteservice)

    Hello,

    you can enqueue the asset files manually in PHP with

    
        wp_enqueue_style('sbs-openstreetmap');
        wp_enqueue_script('sbs-openstreetmap');
    

    Hope this helps

Viewing 1 replies (of 1 total)

The topic ‘use shortcode in PHP template’ is closed to new replies.