Include Email / Inquiry in Listview

This topic contains 1 reply, has 2 voices, and was last updated by  Paolo 9 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #62671

    johan
    Free User
    Post count: 93

    How do I include the inquiry link or email in the Listview for a business? I see selections for website but not email.

    #62688

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    with options you can’t the contact field adds the inquiry/send to friend form and that can only work in the details page.

    You could display the email using a code snippet taking advantage of this hook: geodir_after_listing_post_excerpt

    Please try this in your theme functions.php:

    
    
    add_action('geodir_after_listing_post_excerpt' ,'geodir_my_new_listings_content');
    
    function geodir_my_new_listings_content($tab_index)
     {global $post;
      echo $post->geodir_email;
     }

    Thanks

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