Is there a WP YouTube Plugin that does this?

efeezy

New member
Oct 5, 2007
5,250
136
0
50
Anyone know of a YouTube Wordpress plugin that will automatically pull related videos into a wordpress post. So if I have a single post that's about iphone 4's, the plugin will automatically detect the content and show a related YT video.

I hope to hell there's a way to do this, if not, someone should find a way to build this plugin.
 


Anyone know of a YouTube Wordpress plugin that will automatically pull related videos into a wordpress post. So if I have a single post that's about iphone 4's, the plugin will automatically detect the content and show a related YT video.

I hope to hell there's a way to do this, if not, someone should find a way to build this plugin.


Great question, I haven't found the answer but it sure would be one
i might pay for...
 
If RealVMS is not enough, I could definitely build something like this if there is enough demand or someone willing to pay for it...

Could also easily be extended for other content sources.


I would definitely pay for something like this. Especially if it could pull videos based on Wordpress post titles, tags or post content. That would be a sweet ass plugin. Even better if it was designed where the videos could be displayed below the content in 3-4 small horizontal video boxes as "related videos" or "featured videos". At least that's how I've pictured it in my mind.
 

Yeah, that pretty much does exactly what I'm looking for. Thanks a ton for finding that.

Here's a question for you PHP pros. In this code..

include_once("youtube_class.php");
$theproduct = 'topic';
$videoshow = new youtube();
echo $videoshow->get_youtubevideo($theproduct);


The 'topic' is what determines what content the video will show, and since I don't want to manually put keywords into the 'topic' area for each post, I'd like for it to pull from a custom post field that I've created which has a description of the product on that page.

So if my custom field is named "description", what code would I need to put in place of 'topic' so it dynamically pulls from that custom field for each new post?
 
Ok I figured it out. Even using he Exec-PHP plugin you have to add the second code to your page template to get it to pull from custom fields. So something like this will work.

<?php include_once("youtube_class.php");
$theproduct = get_post_meta($post->ID, 'Your Custom Field Value', true);
$videoshow = new youtube();
echo $videoshow->get_youtubevideo($theproduct);?>

Just put that in your page or post template where you want the video to sho and insert the correct custom field value you want to pull and bingo. You'll have a related video generated automatically. Kick ass.
 
I have the code for something similar to that script already. I would have posted if I had realized that's all you need...

I thought you want a plugin that keeps the video the same. Pulling it every time on pageload will change the video if the youtube search results change. I don't know if that is good or bad, just be aware of it.
 
Yeah, I don't mind the video changing, as long as it's pulling one that's related to the page content. So far it seems to be showing very relevant videos.