 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
August 13, 2014 at 6:20 pm #303977I’ve created a custom page template for a page I needed, and I was hoping to use the TABS shortcode within it. I’m using the do_shortcode command and it starts to work, but it breaks after the first shortcode. So to explain, the TABS shortcode needs the av_tab_container first, then the av_tab shortcodes, and i’m not sure the best way to do multiple shortcodes within a php line. What i have now is: <?php echo do_shortcode("[av_tab_container position='top_tab' boxed='border_tabs' initial='1']");?> <?php echo do_shortcode("[av_tab title='Tab 1' icon_select='no' icon='ue800' font='entypo-fontello']"); ?>\ ---some content with other php code---- <?php echo do_shortcode("[/av_tab]");?> <?php echo do_shortcode("[av_tab title='Tab 2' icon_select='no' icon='ue800' font='entypo-fontello']"); ?> ---some content with other php code---- <?php echo do_shortcode("[/av_tab]");?> <?php echo do_shortcode("[/av_tab_container]"); ?>But the problem seems to be that it starts correctly, but the first “[/av_tab]” and “[/av_tab] [/av_tab_container]” show up on the live page, and the tab’s content is not in a tab but below it, and the ‘Tab 2’ is below that content as well. Is there a better way to set this up in a custom template?? August 14, 2014 at 5:42 am #304181Hi storyboardsolutions! Thank you for using Enfold. I’m sorry but you can’t slice the shortcodes. You need to put it inside the do_shortcode function as a whole. This will echo out the default tab shortcode: <?php echo do_shortcode("[av_tab_container position='top_tab' boxed='border_tabs' initial='1'] [av_tab title='Tab 1' icon_select='no' icon=''] Tab Content 1 goes here [/av_tab] [av_tab title='Tab 2' icon_select='no' icon=''] Tab Content 2 goes here [/av_tab] [/av_tab_container]"); ?>Best regards, 
 Ismael
- 
		AuthorPosts
- You must be logged in to reply to this topic.
