Functions from the sidebar in details listing

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

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

Open Support Ticket
  • Author
    Posts
  • #121766

    mb
    Buyer
    Post count: 151

    Hi team,

    Could you point me out where are the functions controlling the following stored (which file)?

    – Send an inquiry
    – Send to a friend
    – Telephone and Fax

    Would it be possible to call them in a different position in the page via their function name?

    Thanks.

    #121806

    Paolo
    Site Admin
    Post count: 31206

    custom fields like telephone can be called like this anywhere in your templates:

    
    
    global $post;
    if(isset($post->geodir_contact) && $post->geodir_contact){
    echo '<a href="tel:'.$post->geodir_contact.'"><i class="fa fa-phone-square"></i>&nbsp;:&nbsp;'.$post->geodir_contact.'</a>';
    }

    To get all other fields variable names you can add this to your template below the global $post; part:

    print_r($post);

    For the send enquiry form and send to friend please see: https://wpgeodirectory.com/support/topic/moved-send-enquiry-button-not-working/#post-34926

    Digging in the forum you will find plenty of other examples of how to customize the details page.

    Let us know if this helped.

    Thanks,

    #121818

    mb
    Buyer
    Post count: 151

    Thanks, Paolo! It did help!

    #121822

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

Viewing 4 posts - 1 through 4 (of 4 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