Title: get_the_post_video() function
Last modified: August 20, 2016

---

# get_the_post_video() function

 *  [Matteo Legittimo](https://wordpress.org/support/users/mattleg/)
 * (@mattleg)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/get_the_post_video-function/)
 * Hi!
    was using the_post_video() function. Then i changed my template and i saw
   that outside the loop is not working, right!? So im using get_the_post_video()
   passing the id, but the strange think is that it’s printing the url plus the 
   player! Let me know please! Thanks
 * [http://wordpress.org/extend/plugins/featured-video/](http://wordpress.org/extend/plugins/featured-video/)

Viewing 1 replies (of 1 total)

 *  [jonashh](https://wordpress.org/support/users/jonashh/)
 * (@jonashh)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/get_the_post_video-function/#post-3141977)
 * Hi,
 * I was experiencing the same, I decided to look in the code, and at line 158 in
   featured-video.php there is an ‘echo $video’ – don’t know whats it’s doing there,
   looks like some debugging there might not have been removed.
 * But remove that, and it won’t echo out the url 🙂

Viewing 1 replies (of 1 total)

The topic ‘get_the_post_video() function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/featured-video.svg)
 * [Featured Video](https://wordpress.org/plugins/featured-video/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-video/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-video/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-video/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-video/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-video/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [jonashh](https://wordpress.org/support/users/jonashh/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/get_the_post_video-function/#post-3141977)
 * Status: not resolved