0, 'label' => '--choose--' ); $arg = array('posts_per_page' => -1); $construction_lite_posts = get_posts($arg); foreach ($construction_lite_posts as $construction_lite_post) : $construction_lite_postlist[$construction_lite_post->ID] = array( 'value' => $construction_lite_post->ID, 'label' => $construction_lite_post->post_title ); endforeach; extract($widget_field); switch ($construction_lite_widgets_field_type) { // Standard text field case 'text' : ?>






'; } return strip_tags($new_field_value, $construction_lite_widgets_allowed_tags); // No allowed tags for all other fields } elseif ($construction_lite_widgets_field_type == 'url') { return esc_url_raw($new_field_value); } else { return strip_tags($new_field_value); } }