Home › Forums › MapPress Support › maps in tabs- nesting shortcode › Reply To: maps in tabs- nesting shortcode
Hi,
I’m trying paste maps in my template file using do_shortcode() function
This code works almost good, but in TEST TAB 2 and 3 maps are not zoomed.
<?php do_shortcode(“[tab name=’TEST TAB 1′] [mashup][/tab]”);
do_shortcode(“[tab name=’TEST TAB 2′][mashup][/tab];”);
do_shortcode(“[tab name=’TEST TAB 3′][mashup][/tab];”);
echo do_shortcode(“[end_tabset]”);?>
problem is when I paste attributes to mashup like:
<?php do_shortcode(“[tab name=’TEST TAB 1′] [mashup maptypeid="terrain" zoom="6" center_lat="51.984880" center_lng="19.401855" width="600" height="500"][/tab]”);
do_shortcode(“[tab name=’TEST TAB 2′][mashup show="query" maptypeid="terrain" show_query="category_name=turystyka-i-relaks" zoom="6" center_lat="51.984880" center_lng="19.401855" width="600" height="500"][/tab];”);
do_shortcode(“[tab name=’TEST TAB 3′][mashup show="query" show_query="category_name=zabytki-i-zwiedzanie" maptypeid="terrain" zoom="6" center_lat="51.984880" center_lng="19.401855" width="600" height="500"][/tab];”);
echo do_shortcode(“[end_tabset]”);?>
This stuff doesn’ load. Any ideas? would be greatfull for that.
u can see that here:
it works on page edit see sample here: http://blaskipolski.pl/domo/