Beskrivning
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]
Licens
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
Skärmdumpar
Installation
Installation from within WordPress
- Visit Plugins > Add New.
- Search for Video Destacado.
- Install and activate the Video Destacado plugin.
Manuell installation
- Upload the entire
video-destacadofolder to the/wp-content/plugins/directory. - Visit Plugins.
- Activate the Video Destacado plugin.
Efter aktivering
- Visit the new Settings > Video Destacado menu.
- Enable the individual modules you would like to use.
Vanliga frågor
-
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.
Recensioner
Bidragsgivare och utvecklare
”Vídeo Destacado” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.
Bidragande personer”Vídeo Destacado” har översatts till 4 språk. Tack till översättarna för deras bidrag.
Översätt ”Vídeo Destacado” till ditt språk.
Intresserad av programutveckling?
Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.
Ändringslogg
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 toplugin_dir_path() - Refactored meta-box nonce, sanitization and
save_postlogic - 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.


