have_posts() ) { while ( $posts->have_posts() ) { $posts->the_post(); $id = get_the_ID(); $args["values"][$id] = get_the_title(); } wp_reset_postdata(); } if ( !isset( $args["admin_class"] ) ) { $args["admin_class"] = ''; } $args["admin_class"] .= ' tpl-dt-select'; parent::__construct( $args ); } }