Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'genesis_entry_content', 'address' );
- function address() {
- if(is_single() ) {
- if(get_field('Address_1'))
- {
- echo '<div class="location">' . get_field('Address_1') . '</div>';
- }
- if(get_field('street_address_2'))
- {
- echo '<div class="location">' . get_field('street_address_2') . '</div>';
- }
- if(get_field('po_box'))
- {
- echo '<div class="location">' . get_field('po_box') . '</div>';
- }
- if(get_field('city'))
- {
- echo '<div class="location">' . get_field('city') . '<div>';
- }
- if(get_field('state'))
- {
- echo '<div class="location">' . get_field('state') . '</div>';
- }
- if(get_field('zip'))
- {
- echo '<div class="location">' . get_field('zip') . '</div>';
- }
- if(get_field('phone'))
- {
- echo '<div class="touchpoints">' . get_field('phone') . '</div>';
- }
- if(get_field('website'))
- {
- echo '<div class="touchpoints">' . get_field('website') . '</div>';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement