• I try to use your shortcode in a loop.

    $address = $module->render_post_address( $post_id );;
    echo do_shortcode( sprintf( '[leaflet-marker address="%s"]', $address ) );

    It only adds the adress under the map.
    Maybe you have an idea how i can use it like that.

    • This topic was modified 7 years, 2 months ago by Messaone.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using php variable in shortcode’ is closed to new replies.