Vídeo Destacado

الوصف

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

Usage

To display the featured video in your theme templates, call the function inside The Loop or anywhere you need it:
php
<?php video_destacado(); ?>

Or, for example, inside a custom query loop:
php
<?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]

License

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/.

Support

لقطات الشاشة

  • Featured Video meta box in the post editor
  • Vídeo Destacado settings page under Settings menu

التنصيب

Installation from within WordPress

  1. Visit Plugins > Add New.
  2. Search for Video Destacado.
  3. Install and activate the Video Destacado plugin.

Manual installation

  1. Upload the entire video-destacado folder to the /wp-content/plugins/ directory.
  2. Visit Plugins.
  3. Activate the Video Destacado plugin.

After activation

  1. Visit the new Settings > Video Destacado menu.
  2. Enable the individual modules you would like to use.

الأسئلة المتكررّة

How to display the video in the post?

Insert in your template page
php
<?php video_destacado(); ?>

You can seugerir modifications and ideas for this plugin?

Sure you can, go to this link [Featured Video] (https://github.com/airton/video-destacado)

What version of PHP do I need?

Sites must be built on PHP 5.6 or greater, but Jetpack always supports the latest version of PHP.

المراجعات

13 نوفمبر، 2025
Video Destacado has transformed how I manage and display videos on my WordPress site. It’s incredibly easy to set up and use, allowing me to highlight important video content exactly where I need it. The clean integration and seamless performance are top-notch. If you’re looking for a straightforward yet powerful solution to feature videos, look no further. Highly recommended!
3 سبتمبر، 2016
when you say: Enter the following code inside the loop What exactly id “The Loop” you are talking about??? Please be clear. Thanks.
إقرأ جميع المراجعات 6

المساهمون والمطوّرون

“Vídeo Destacado” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في هذه الإضافة.

المساهمون

لقد تم ترجمة ”Vídeo Destacado“ إلى 4 لغات. شكراً إلى جميع المُترجمين لمُساهماتهم.

ترجمة ”Vídeo Destacado“ إلى لغتك.

مُهتم بالتطوير؟

تصفّح الشفرة، تحقق من مستودع SVN، أو الاشتراك في سجل التطوير بواسطة RSS.

سجل التغييرات

1.7.5

  • Feat: Add shortcode to display featured video.

1.7.4

  • Fix: Address security warnings and update plugin version
  • Fix: Escaping of video ID, width, and height in metabox input fields.
  • Fix: Missing unslash for nonce verification.
  • Fix: Missing sanitization for register_setting.

1.7.3

  • Feature Make the plugin translatable

1.7.2

  • Revamped Description section in readme.txt for clarity
  • Normalized readme.txt to WordPress plugin readme standard
  • Removed duplicate Changelog section

1.7.1

  • Limited tags to 5 to comply with WordPress.org guidelines
  • Fixed “Tested up to” field to use a valid WordPress version
  • Added Settings link in the Plugins page action links
  • Enabled post & page by default on activation

1.7.0

  • Added direct-access guard (ABSPATH) and switched includes to plugin_dir_path()
  • Refactored meta-box nonce, sanitization and save_post logic
  • Changed Add/Remove controls to real submit buttons so the post form saves the meta
  • Thumbnail preview now injected above the ID list, uses HTTPS and proper escaping
  • Enqueued admin JS/CSS via admin_enqueue_scripts (replacing deprecated hooks)
  • Rebuilt settings page with the Settings API and dropped legacy activation toggle

1.6.0

  • Cosmetic changes

1.0

  • Add page settings (Settings Vídeo Destacado)

0.2

  • Add width and height of the player

0.1

  • Highlighted in the video display post, page and custom post types.