Hello,
I am trying to add the events tab onto the listing section. I followed the directions from https://wpgeodirectory.com/add-a-new-tab-in-the-listing-detail-page/ copying the following code into my 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) {
if ( ‘gd_event’ == get_post_type() )
$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 ; }
The events tab still will not show.
I have tried linking custom post type as well and the events are linking to the shops like I need them to. Am I entering the code wrong or am I missing something when it comes to adding a event tab on the listing page?