[Plugin: Basic Google Maps Placemarks] error when adding do shortcode to function.php
-
I have added the following to functions.php
I am trying to place the map on the front page of a blog where Reading Settings is set to front page shows latest posts
I get the following error:
Parse error: syntax error, unexpected T_VARIABLE in /home/content/40/9512840/html/wp-content/themes/wp-creativix/functions.php on line 16
Wasn’t sure if return_true should be proceeded with one _ or two but either way i get the error.function bgmpShortcodeCalled() { global $post; $shortcodePageSlugs = array( 'home' ); if( $post ) if( in_array( $post->post_name, $shortcodePageSlugs ) ) add_filter( 'bgmp_map-shortcode-called', '__return_true' ); } add_action( 'wp', 'bgmpShortcodeCalled' );http://wordpress.org/extend/plugins/basic-google-maps-placemarks/
The topic ‘[Plugin: Basic Google Maps Placemarks] error when adding do shortcode to function.php’ is closed to new replies.