ID, 'google_api_key', true); $biz_name = get_post_meta($post->ID, 'contact_page_name', true); $email = get_post_meta($post->ID, 'contact_page_email', true); $phone = get_post_meta($post->ID, 'contact_page_phone', true); $street_address = get_post_meta($post->ID, 'contact_page_street', true); $city = get_post_meta($post->ID, 'contact_page_city', true); $state = get_post_meta($post->ID, 'contact_page_state', true); $zip = get_post_meta($post->ID, 'contact_page_zip', true); $address = $street_address . ' ' . $city . ' ' . $zip; // is open $mday_is_open = get_post_meta($post->ID, 'mday_is_open', true); $tuesday_is_open= get_post_meta($post->ID, 'tuesday_is_open', true); $wday_is_open= get_post_meta($post->ID, 'wday_is_open', true); $thursday_is_open= get_post_meta($post->ID, 'thursday_is_open', true); $fday_is_open= get_post_meta($post->ID, 'fday_is_open', true); $saturday_is_open= get_post_meta($post->ID, 'saturday_is_open', true); $sunday_is_open= get_post_meta($post->ID, 'sunday_is_open', true); // all day $mday_allday = get_post_meta($post->ID, 'mday_allday', true); $tuesday_allday = get_post_meta($post->ID, 'tuesday_allday', true); $wday_allday = get_post_meta($post->ID, 'wday_allday', true); $thursday_allday = get_post_meta($post->ID, 'thursday_allday', true); $fday_allday = get_post_meta($post->ID, 'fday_allday', true); $saturday_allday = get_post_meta($post->ID, 'saturday_allday', true); $sunday_allday = get_post_meta($post->ID, 'sunday_allday', true); // hours $mday_start = get_post_meta($post->ID, 'mday_start', true); $mday_end = get_post_meta($post->ID, 'mday_end', true); $tuesday_start = get_post_meta($post->ID, 'tuesday_start', true); $tuesday_end = get_post_meta($post->ID, 'tuesday_end', true); $wday_start = get_post_meta($post->ID, 'wday_start', true); $wday_end = get_post_meta($post->ID, 'wday_end', true); $thursday_start = get_post_meta($post->ID, 'thursday_start', true); $thursday_end = get_post_meta($post->ID, 'thursday_end', true); $fday_start = get_post_meta($post->ID, 'fday_start', true); $fday_end = get_post_meta($post->ID, 'fday_end', true); $saturday_start = get_post_meta($post->ID, 'saturday_start', true); $saturday_end = get_post_meta($post->ID, 'saturday_end', true); $sunday_start = get_post_meta($post->ID, 'sunday_start', true); $sunday_end = get_post_meta($post->ID, 'sunday_end', true); if ($mday_is_open != 'on') { $monday = 'Closed'; } elseif ($mday_allday == 'on') { $monday = 'All Day'; } else { $monday = $mday_start . ' to ' . $mday_end; } if ($tuesday_is_open != 'on') { $tuesday = 'Closed'; } elseif ($tuesday_allday == 'on') { $tuesday = 'All Day'; } else { $tuesday = $tuesday_start . ' to ' . $tuesday_end; } if ($wday_is_open != 'on') { $wednesday = 'Closed'; } elseif ($wday_allday == 'on') { $wednesday = 'All Day'; } else { $wednesday = $wday_start . ' to ' . $wday_end; } if ($thursday_is_open != 'on') { $thursday = 'Closed'; } elseif ($thursday_allday == 'on') { $thursday = 'All Day'; } else { $thursday = $thursday_start . ' to ' . $thursday_end; } if ($fday_is_open != 'on') { $friday = 'Closed'; } elseif ($fday_allday == 'on') { $friday = 'All Day'; } else { $friday = $fday_start . ' to ' . $fday_end; } if ($saturday_is_open != 'on') { $saturday = 'Closed'; } elseif ($saturday_allday == 'on') { $saturday = 'All Day'; } else { $saturday = $saturday_start . ' to ' . $saturday_end; } if ($sunday_is_open != 'on') { $sunday = 'Closed'; } elseif ($sunday_allday == 'on') { $sunday = 'All Day'; } else { $sunday = $sunday_start . ' to ' . $sunday_end; } ?>