BGMP with tabs
-
Hello.
I’m trying to use tabs with BGMP: i want to have list ([bgmp-list]) on tab 1 and map ([bgmp-map]) on tab 2:
https://wp.the-mill.ru/test/
However, the map doesn’t work properly (no error, just a grey rectangle).
I’ve tried 3 different tabs plugins (they all use shortcodes) with exactly the same result.
If I put map in the tab 1 – it works fine, but I need it on the tab 2.Any ideas how to fix this?
PS
I’ve also added this code to functions.php as explained on the installation manual:
function bgmpShortcodeCalled()
{
global $post;
$shortcodePageSlugs = array(
‘test’
);
if( $post )
if( in_array( $post->post_name, $shortcodePageSlugs ) )
add_filter( ‘bgmp_map-shortcode-called’, ‘__return_true’ );
if( ( function_exists( ‘is_front_page’ ) && is_front_page() ) || ( function_exists( ‘is_home_page’ ) && is_home_page() ) )
add_filter( ‘bgmp_map-shortcode-called’, ‘__return_true’ );
}
add_action( ‘wp’, ‘bgmpShortcodeCalled’ );https://www.ads-software.com/plugins/basic-google-maps-placemarks/
- The topic ‘BGMP with tabs’ is closed to new replies.