if (isset($options["debug_ssl"]) && intval($options["debug_ssl"]) > 0) { wp_redirect(str_replace('http:', 'https:', get_permalink($user_page->ID))); } else { wp_redirect(get_permalink($user_page->ID)); } } } get_header(); if (have_posts()) { while (have_posts()) { the_post(); if (class_exists("PeoplePostType")) { printf('<form action="%s" method="post" class="ltp-profile-builder"><h2>%s</h2>', get_permalink($post->ID), get_the_title()); echo PeoplePostType::get_profile_field_control(array('field_name' => 'nonce')); //printf( '<p class="compulsory">Compulsory field</p>'); echo ltp_template::profile_toolbar($has_page, $is_published); // student photo print '<div class="section top"><h3>1. Upload Photo</h3>'; echo PeoplePostType::get_profile_field_control(array('field_name' => 'photo')); print '</div>'; // student basic information print '<div class="section"><h3>2. Basic Information</h3>'; echo PeoplePostType::get_profile_field_control(array('field_name' => 'firstname')); echo PeoplePostType::get_profile_field_control(array('field_name' => 'surname')); echo '<br style="clear:both">'; echo PeoplePostType::get_profile_field_control(array('field_name' => 'gender')); echo PeoplePostType::get_profile_field_control(array('field_name' => 'experience')); echo PeoplePostType::get_profile_field_control(array('field_name' => 'region')); print '</div>'; print '<div class="section"><h3>3. Regions I would like to work in</h3><div class="checkbox-list">'; echo PeoplePostType::get_profile_field_control(array('field_name' => 'desired_region'));