Support

Account

Forum Replies Created

  • Thank you so much! It took a little finagling, but I figured it out. I’m using the Options page add-on, and calling the company address into the footer. Here is the final code that did the trick:

    <?php 
                                    
    // vars
    $contact_address = get_field('company_address', 'option');
    
    ?>
    <address class="footer-address street-address">
    <?php $address = explode( "," , $contact_address['address']);
    echo $address[0].', '; //street number
    echo $address[1].','.$address[2]; //city, state + zip
    ?>
    </address>

    I really appreciate the help! 🙂

  • Hi there, okadots. I have run into the same dilemma: trying to display the address all in one line without the coordinates at the end.

    I am new to PHP, so I’m struggling to get your code to work. Can you paste the complete code that you used that worked? I would really appreciate it!

    Thanks so much 🙂
    Raeanne

Viewing 2 posts - 1 through 2 (of 2 total)