Default all places page problem

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

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

Open Support Ticket
  • Author
    Posts
  • #66773

    karshis
    Buyer
    Post count: 11

    Hi
    This page was created automatically and can’t change the title – http://tucker2835.wpengine.com/locations/
    Why I am trying to change title is in the screenshot, it shows

    Home/Place/ZEE MEDICAL CANADA INC

    I want it to be

    Home/Locations/ZEE MEDICAL CANADA INC

    How to do that?

    Another problem, I want the tab “MAP” to be opened in default. And the title of the place should be on top of left sidebar, not under that. Help me with these.

    #66800

    Guust
    Moderator
    Post count: 29970

    Change the “name” of the custom post type at GD > Custom Post Types > “locations” CPT.

    This post tells you how to re-order tabs and to change which tab wants to be active on entry to the detail page.

    The links in your screenshot are the breadcrumbs, not the title.

    #67153

    Paolo
    Site Admin
    Post count: 31206

    The link to re-order tabs: https://wpgeodirectory.com/re-order-tabs-in-a-listing-detail-page/

    Looks like Guust forgot to paste it…

    Thanks

    #67230

    karshis
    Buyer
    Post count: 11

    Hi
    couldn’t understand that perfectly.
    Tried this, no luck.

    
    
    // this is the snippet that adds the filter, calling the function below. 
    add_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend') ;
     
    // this is the function that does the re-ordering that we call with the add filter snippet above.
    function geodir_detail_page_tab_list_extend($tab_array)
    {
     
     // here you can modify the array and re-arrange tabs as you wish, you can create a completely new array too.
     
        // this is the review tab, by default is the 7th, but here we moved it to position 1.
        if(isset($tab_array['map'])){
             $new_tab_array['map'] = $tab_array['map'];// set in new array
             // IMPORTANT the following code tells GeoDirectory that this is the new default active tab 
             $new_tab_array['map']['is_active_tab']='1';
             unset($tab_array['map']);//unset in old one
         }
     
        // this is the post profile tab, by default is the 1st
        if(isset($tab_array['post_profile'])){
             $new_tab_array['post_profile'] = $tab_array['post_profile']; // set in new array
             // IMPORTANT the following code tells GeoDirectory that this is no longer the default active tab 
             $new_tab_array['post_profile']['is_active_tab']='';
             unset($tab_array['post_profile']);//unset in old one
         }
     
        // this is the post info tab (optional for custom fields), by default, if available, is the 2nd.
        if(isset($tab_array['post_info'])){
             $new_tab_array['post_info'] = $tab_array['post_info'];// set in new array
             unset($tab_array['post_info']);//unset in old one
         }
        // this is the images tab, by default is the 3rd
        if(isset($tab_array['post_images'])){
             $new_tab_array['post_images'] = $tab_array['post_images'];// set in new array
             unset($tab_array['post_images']);//unset in old one
        }
     
        // this is the video tab, appears only if there are videos and by default is the 4th
         if(isset($tab_array['post_video'])){
             $new_tab_array['post_video'] = $tab_array['post_video'];// set in new array
             unset($tab_array['post_video']);//unset in old one
        }
     
        // this is the speacial offer tab, appears only if there are special offers and by default is the 5th
        if(isset($tab_array['special_offers'])){
             $new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array
             unset($tab_array['special_offers']);//unset in old one
         }
     
        // this is the map tab, by default is the 6th
        if(isset($tab_array['post_reviews'])){
             $new_tab_array['post_reviews'] = $tab_array['post_reviews'];// set in new array
             unset($tab_array['post_reviews']);//unset in old one
         }
     
        // this is the related listing tab, it is optional and by default is the 8th
        if(isset($tab_array['related_listing'])){
            $new_tab_array['related_listing'] = $tab_array['related_listing'];// set in new array
            unset($tab_array['related_listing']);//unset in old one
        }
         
        // now we set any remaining tabs that have not been assigned an order
        foreach($tab_array as $key=>$tab){
        $new_tab_array[$key]=$tab;
        }
     
        return $new_tab_array ;
    }

    And couldn’t find GD > Custom Post Types

    #67278

    karshis
    Buyer
    Post count: 11
    This reply has been marked as private.
    #67324

    karshis
    Buyer
    Post count: 11

    Anyone there?

    #67330

    Paolo
    Site Admin
    Post count: 31206

    hi,

    1) You need to add that code to your theme’s functions.php file as explained in that tutorial.

    2) You need to install the custom post type add-on.

    Please read our support policy to know when to expect a reply: https://wpgeodirectory.com/support-policy/

    Thank you

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

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

Open Support Ticket