# Vídeo Destacado

[👋 Donate](https://www.buymeacoffee.com/airton)

Link for page the wordpress plugin
[http://wordpress.org/plugins/video-destacado/](http://wordpress.org/plugins/video-destacado/)

# Description

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

# Installation

1. Unzip the file to the plugins folder of the 'wp-content/plugins/' directory inside of WordPress
2. Keep the directory structure of the file, all extracted files should exist in 'wp-content/plugins/video-destacado/'

## How to use

**Insert in your template page**

```
<?php video_destacado(); ?>
```

**Ex:**

```
<?php

  // The Query
  query_posts( $args );

  // The Loop
  while ( have_posts() ) : the_post();

    video_destacado();

  endwhile;

  // Reset Query
  wp_reset_query();

?>
```

## Version 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
- Add Settings link in Plugins page action links
- Enable post & page by default on activation

## Version 1.6.0

Cosmetic changes

## Version 1.0

Add page settings

Settings > Vídeo Destacado

## Version 0.2

Add <code>width</code> and <code>height</code> of the player

## Version 0.1

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

**Screenshots**

Settings page
![](http://ps.w.org/video-destacado/assets/screenshot-2.png)

As will be shown in the video featured admin
![](http://ps.w.org/video-destacado/assets/screenshot-1.png)

**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.
Nome do teu Plugin 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 Nome do teu Plugin. If not, see <http://www.gnu.org/licenses/>.

**Support**

- [@airtonvancin](https://twitter.com/airtonvancin)
- [Site](http://www.airtonvancin.com/)
