You should add a custom tab (via php) and use the default wp shortcode API call
<?php echo do_shortcode( $content ) ?>
inside the function that will add content in the new tab.
To add a tab with label ‘New Tab’ do the following in ur theme functions.php file:
add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
function geodir_detail_page_tab_list_extend($tab_array)
{
$tab_array['my_new_tab'] = array(
'heading_text' => __('New Tab',GEODIRECTORY_TEXTDOMAIN),
'is_active_tab' => false,
'is_display' => apply_filters('geodir_detail_page_tab_is_display', true, 'my_new_tab'),
'tab_content' => ''
);
return $tab_array ;
}
Now for the second part, to show Content when user click on that tab, do this:
add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content');
function geodir_my_new_tab_content($tab_index)
{
if($tab_index =='my_new_tab')
{
echo do_shortcode( $content );
}
}
Please make sure that ‘my_new_tab'(tab index) is same as array index created in first step.
Obviously change $content inside the do_shortcode call to whatever shortcode name you need to use.
Let us know how you went.
Thx