• Hi,

    Adding this to a post with Maps information ends up just creating empty paragraphs:

    [googlemaps]
    [googlemaps static=true]
    [googlemaps static=true label=M]
    [googlemaps width=200 height=200]
    [googlemaps new_design=true]

    The only way I’ve been able to display a map is by creating my own shortcode:

    function google_map_func( ) {
      if ( function_exists( 'pronamic_google_maps' ) ) {
    	  $map_info .= pronamic_google_maps( array(
    		  'width'  => '100%',
    		'height' => 300
    	  ) );
    	  $map_info .= pronamic_google_maps_geo_microformat();
    	}
    
    }
    add_shortcode( 'google_map', 'google_map_func' );
    
    // Process shortcodes in Snippets
    add_filter('widget_text', 'do_shortcode');

    Though using this I can’t really control the output position, but at least it is showing.

    https://wordpress.org/plugins/pronamic-google-maps/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Reüel

    (@pronamic_reuel)

    Have you by chance enabled Jetpack’s Shortcode Embeds? There’s a conflicting ‘googlemaps’ shortcode, which might be the issue.

    Thread Starter acn

    (@acseven)

    Yup, that was it. Maybe you could add a fallback shortcode, if Jetpack is detected?

    Thread Starter acn

    (@acseven)

    Oh, and I couldn’t make Static images run, even after turning on the static maps API…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcodes are not working’ is closed to new replies.