跳到内容

Vídeo Destacado

v1.7.5

Airton Vancin Junior · 2012年11月5日 上架

Insert a video posted to Youtube for posts, pages and custom post types

正在使用
20+
评分
4.2 / 5
累计下载
7,890
最近更新
2026年1月8日
5 条评价需要 WordPress 3.0+已测试到 6.9.12

截图

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

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums