Displaying a Custom Field within Map Popup

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

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

Open Support Ticket
  • Author
    Posts
  • #162584

    Trex888
    Expired Member
    Post count: 101

    Hi,

    Sorry if this has been answered already but I could not find it. I’d like for one of my Custom Fields to display within the Map Popup. Currently it shows address and phone number. I saw a post that shows how to add email but I couldn’t find anything on how to add a Custom Field. Is this possible? Ideally I’d like for this custom field to appear next to a fa icon, like address the phone number do.

    Thanks for any help,

    T

    #162728

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    adding email or another custom field is the same.

    Instead of:

    
    
    
    global $post;
    echo $post->geodir_contact;

    you will use

    geodir_ followed by the custom field name instead of contact.

    Thanks

    #162730

    Trex888
    Expired Member
    Post count: 101

    Just to confirm, this is within geodirectory/geodirectory-functions/post_functions.php?

    #162735

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    no, you should never modify a plugin file.

    Please see: https://wpgeodirectory.com/support/topic/design-questions/#post-68251

    Thanks

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