Hi
I am trying to move date on events from sidebar to a new tab. I use list view. I have used the following code:
function gd_show_event_schedule_as_tab( $template ) {
if ( has_filter( ‘geodir_detail_page_sidebar_content’, ‘geodir_event_detail_page_sitebar_content’ ) ) {
remove_filter( ‘geodir_detail_page_sidebar_content’, ‘geodir_event_detail_page_sitebar_content’, 2 );
add_filter( ‘geodir_detail_page_tab_list_extend’, ‘gd_detail_page_tab_event_schedule’, 10, 1 );
add_action( ‘geodir_after_tab_content’, ‘gd_detail_page_tab_content_event_schedule’, 10, 1 );
}
return $template;
}
add_filter( ‘template_include’, ‘gd_show_event_schedule_as_tab’, 10 );
function gd_detail_page_tab_event_schedule( $tab_array ) {
if ( ‘gd_event’ == get_post_type() ) {
$tab_array[‘event_schedule’] = array(
‘heading_text’ => __( ‘Event Schedule’, ‘geodirevents’ ),
‘is_active_tab’ => false,
‘is_display’ => apply_filters( ‘geodir_detail_page_tab_is_display’, true, ‘event_schedule’ ),
‘tab_content’ => ”
);
}
return $tab_array ;
}
function gd_detail_page_tab_content_event_schedule( $tab ) {
if ( $tab == ‘event_schedule’ ) {
geodir_event_show_schedule_date();
}
}
This has worked but I would like it to go between Profile and More Info. What do I need to change to do this?
Thanks in advance!