Change Details VIew

This topic contains 6 replies, has 3 voices, and was last updated by  Vicente Albero 9 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #48192

    Vicente Albero
    Buyer
    Post count: 51

    Hi,
    We want to change the details view, we want to remove the file attached and showing the coordinates gps like the picture attached.

    Regards
    Vicente

    #48237

    Guust
    Moderator
    Post count: 29970

    Can you post that picture?

    #48269

    Vicente Albero
    Buyer
    Post count: 51

    Sorry

    Regards
    Vicente

    #48318

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    I’m not sure what you are hiding there, I can’t read it and looks like a custom field…

    In any case this would require a customization.

    Thanks

    #48427

    Vicente Albero
    Buyer
    Post count: 51

    Hi,
    The picture has been created for me.
    But the gps information is in a SQL table, is not possible to show the Gps information in the details view?

    Regards
    Vicente

    #48449

    Paolo
    Site Admin
    Post count: 31211

    The video can be removed from wthin the custom field options. Where it says “show in sidebar” select no.

    This code in your active theme functions.php will show the lat and long in your sidebar below the address.

    
    
    add_action('geodir_after_show_post_address','my_theme_add_lat_lon',10);
    
    function my_theme_add_lat_lon(){
        global $post;
    
       if(isset($post->post_latitude)){
        echo "<p>".$post->post_latitude."</p>";
       }
    
       if(isset($post->post_longitude)){
        echo "<p>".$post->post_longitude."</p>";
       }
    
    }

    This is basic, you’ll need to add title or some html if you want to style it.

    Let us know how you went.

    Thanks

    #48494

    Vicente Albero
    Buyer
    Post count: 51

    Ok, thank you very much

    Regards
    Vicente

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
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount