'da_image', 'post_status' => 'publish', 'posts_per_page' => -1 ); $images = new WP_Query($args); if ( $images->have_posts() ) { echo ''; } } add_action( 'fl_builder_control_select-img', 'da_select_img', 1, 3 );