Hi,
the code I added is:
error_reporting(E_ERROR);
add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
function geodir_detail_page_tab_list_extend($tab_array) {
if ( 'gd_place' == get_post_type() ) {
$tab_array['projects'] = array(
'heading_text' => __('Projects',GEODIRECTORY_TEXTDOMAIN),
'is_active_tab' => false,
'is_display' => apply_filters('geodir_detail_page_tab_is_display', true,'projects'),
'tab_content' => '');
return $tab_array ; }
else {return $tab_array ;}
}
add_action('geodir_after_tab_content' ,'geodir_my_new_tab_content');
function geodir_my_new_tab_content($tab_index)
{
if($tab_index =='projects')
{echo do_shortcode('[gd_listings post_type="gd_contractor_projec" post_author="current" post_number="10" add_location_filter="0"]');}
}
You have to add it below CUSTOM FUNCTIONS and above ?>
Let us know how you went,
Thanks