Shortcodes are not working
-
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.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Shortcodes are not working’ is closed to new replies.