ID, $fieldName, true); $label = $field['label']; $description = $field['description']; switch ($type) { case 'textbox': $fieldHTML = ''; break; case 'textarea': $fieldHTML = ''; break; case 'checkbox': $extraText = $field['extraText'] ? $field['extraText'] : ''; $fieldHTML = ' '.$extraText.''; break; case 'selectCustom': $customList = $field['options'] ? $field['options'] : array('key' => '0', 'value' => 'Empty'); //lines into array $fieldHTML = ''; break; case 'selectCategories': $customList = get_categories( array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 0, ) ); //lines into array $fieldHTML = ''; break; case 'selectTags': $customList = get_tags( array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 0, ) ); //lines into array $fieldHTML = ''; break; case 'selectPages': $customList = get_posts( array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 0, 'post_type' => 'page', 'post_status' => $post_status, ) ); //lines into array $fieldHTML = ''; $fieldHTML .= ''; break; case 'selectPosts': $customList = get_posts( array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 0, 'post_type' => 'post', 'post_status' => $post_status, ) ); //lines into array $fieldHTML = ''; $fieldHTML .= ''; break; case 'datepicker': $fieldHTML = ''; break; } ?>