Related YouTube videos in wordpress sidebar

efeezy

New member
Oct 5, 2007
5,250
136
0
50
I think this was discussed a while back, but I can't remember how to do it.

What would be the best way to display a page relevant YouTube video in the sidebar of a Wordpress page.

Say one page/post is about Ford Mustangs, I'd want a mustang related video showing in the sidebar of that page, but on my Dodge Viper page, I'll want a viper video and so on for each different page. Any code that would let me pull this off? Thanks.
 


ok efeezy.. Here is the link u need
Google AJAX Search API - AJAX Video Bar
That part is easy to figure out.. now how to get the search term into the execute list is the hard part.

Here is the thing.. I've done this on some php DB sites, but haven't done it with WP yet. I think you will either need to have php exec installed or hack up the sidebar in the template. Where are you getting the search terms from, tags or the title?
could be as simple as replacing the search term in the execute list with
<?php the_title() ?>