{"id":6322434,"date":"2015-07-13T10:43:26","date_gmt":"2015-07-13T10:43:26","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/bgmp-with-tabs\/"},"modified":"2016-08-30T15:25:17","modified_gmt":"2016-08-30T15:25:17","slug":"bgmp-with-tabs","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/bgmp-with-tabs\/","title":{"rendered":"BGMP with tabs"},"content":{"rendered":"<p>Hello.<br \/>\nI&#8217;m trying to use tabs with BGMP: i want to have list ([bgmp-list]) on tab 1 and map ([bgmp-map]) on tab 2:<br \/>\nhttp:\/\/wp.the-mill.ru\/test\/<br \/>\nHowever, the map doesn&#8217;t work properly (no error, just a grey rectangle).<br \/>\nI&#8217;ve tried 3 different tabs plugins (they all use shortcodes) with exactly the same result.<br \/>\nIf I put map in the tab 1 &#8211; it works fine, but I need it on the tab 2.<\/p>\n<p>Any ideas how to fix this?<\/p>\n<p>PS<br \/>\nI&#8217;ve also added this code to functions.php as explained on the installation manual:<br \/>\nfunction bgmpShortcodeCalled()<br \/>\n{<br \/>\n    global $post;<br \/>\n    $shortcodePageSlugs = array(<br \/>\n        &#8216;test&#8217;<br \/>\n    );<br \/>\n    if( $post )<br \/>\n        if( in_array( $post-&gt;post_name, $shortcodePageSlugs ) )<br \/>\n            add_filter( &#8216;bgmp_map-shortcode-called&#8217;, &#8216;__return_true&#8217; );<br \/>\nif( ( function_exists( &#8216;is_front_page&#8217; ) &amp;&amp; is_front_page() ) || ( function_exists( &#8216;is_home_page&#8217; ) &amp;&amp; is_home_page() ) )<br \/>\n        add_filter( &#8216;bgmp_map-shortcode-called&#8217;, &#8216;__return_true&#8217; );<br \/>\n}<br \/>\nadd_action( &#8216;wp&#8217;, &#8216;bgmpShortcodeCalled&#8217; );<\/p>\n<p>https:\/\/wordpress.org\/plugins\/basic-google-maps-placemarks\/<\/p>\n","protected":false},"template":"","class_list":["post-6322434","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6322434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6322434\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6322434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}