Hide country from venue address if it's USA

Home Forums Calendar Products Events Calendar PRO Hide country from venue address if it's USA

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #27545
    ML
    Participant

    What code would I need in full-address.php to hide the country name if it’s United States?
    Thanks!

    #27548
    Barry
    Member

    Hi ML. Would something like this help?

    http://pastebin.com/3GKBa2ML

    #27576
    ML
    Participant

    Yes! Thank you, Barry.
    I changed Lines 19 and 44 to clean up the commas (though I’m sure I didn’t do it in the best or correct way).

    Line 19.
    <?php $address_out []= '’ . tribe_get_address( $postId ) . ‘,’; ?>

    Line 44.

    #27577
    ML
    Participant

    oops – the code doesn’t paste in right – sorry

    #27579
    Barry
    Member

    No unfortunately code doesn’t really display well in the forum right now. It’s best to use a service like Gist or Pastebin and post the link back.

    #27741
    Barry
    Member

    Hi ML, I’m guessing you are all sorted here (bar any brushing up you need to do such as removing commas). If you need any further help please just shout back, otherwise I’ll close this thread. Thanks!

    #472251
    Steve
    Participant

    I’m not a programer, but would like to apply the same to our site.
    what file is edited to make this work?
    and is there a way to format it?
    Address Here
    City, State Zip

    Thanks
    -Steve

    #983427
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Hide country from venue address if it's USA’ is closed to new replies.