Events tab will not show on listing

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 5 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #460192

    Arianna Russell
    Expired Member
    Post count: 46

    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?

    #460209

    Alex Rollin
    Moderator
    Post count: 27815

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket