by Airton Vancin Junior on WordPress.org

Featured Video meta box in the post editor
Vídeo Destacado lets you feature a YouTube video on your posts, pages, or any public custom post type.
Simply enter the YouTube video ID in the dedicated meta box, preview the thumbnail, and set custom width and height.
Features:
* Enable on selected post types via Settings
* Thumbnail preview and real-time feedback in the editor
* Customizable player dimensions
* Secure nonce validation and input sanitization
* Properly enqueues admin scripts and styles
To display the featured video in your theme templates, call the function inside The Loop or anywhere you need it:
php
Or, for example, inside a custom query loop:
php
// The Query
query_posts( $args );
// The Loop
while ( have_posts() ) : the_post();
video_destacado();
endwhile;
// Reset Query
wp_reset_query();
?>
You can also use the shortcode in your post content:
[video-destacado]
To customize the dimensions, use the width and height attributes:
[video-destacado width=300 height=150]
Vídeo Destacado is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Vídeo Destacado is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Vídeo Destacado. If not, see http://www.gnu.org/licenses/.