company info to show in tab

This topic contains 5 replies, has 3 voices, and was last updated by  Paolo 8 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #189652

    sumi
    Expired Member
    Post count: 97

    i recently broke functions.php, have now installed previous and site up and running.

    i had company info (show in sidebar) displaying in map tab:

    
    
    add_action('geodir_before_tab_content' ,'geodir_find_us_content');
    function geodir_find_us_content($tab_index)
    {
    	if($tab_index =='Find Us')
    	{
    
    echo geodir_show_listing_info();
    	}
    }

    i dont know what ive done but all my info has gone missing!

    changed a field to display in more info tab, and it shows fine with custom css,
    so i’m thinking i havent messed up the css, yet for some reason was working fine before but not now!

    any advice much appreciated

    #189748

    Guust
    Moderator
    Post count: 29970

    Can we have your URL and WP admin details in a private reply please. Thanks.

    #193457

    sumi
    Expired Member
    Post count: 97
    This reply has been marked as private.
    #193718

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    correct code is:

    
    
    add_action('geodir_before_tab_content' ,'geodir_map_content');
    function geodir_map_content($tab_index)
    {
    	if($tab_index =='post_map')
    	{
    
    echo geodir_show_listing_info();
    	}
    }

    Thanks

    #193721

    sumi
    Expired Member
    Post count: 97

    hugs, thank you, all working fine…

    thank you

    #193725

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount