59 Responses

  1. Darren Hoyt
    Darren Hoyt January 30, 2008 at 11:14 pm |

    Useful stuff – thanks!

    Reply
  2. Justin Tadlock
    Justin Tadlock January 31, 2008 at 10:00 pm |

    Thanks Darren. Maybe you’ll implement this in one of your theme designs.

    Reply
  3. det
    det February 11, 2008 at 6:26 pm |

    brilliant! i’m gonna try it, i was looking to create some sort of sideblog with videos!

    Reply
  4. det
    det February 12, 2008 at 6:05 pm |

    i’m here again… is there a way to create a plugin with this?

    i know nothing about php and programming…

    thank you!!

    Reply
  5. Alissa
    Alissa February 22, 2008 at 4:21 pm |

    Justin, have you ever had multiple videos in a player? I’m using your video block and I’d like to have a “next video” link underneath it so users can browse right on the home page. I’ve looked at wordpress’s next_post links and haven’t quite got them to work. Any ideas?

    Reply
  6. Bill
    Bill March 4, 2008 at 7:58 am |

    Well, I’ve tried twice to post the whole code but it doesn’t appear to be showing up.

    Reply
  7. African safari vacations
    African safari vacations March 12, 2008 at 6:04 am |

    It an interesting plugin. I would however appreciate it if someone could assist me in finding a similar plugin but one that would allow me to post mutiple videos on my African safari vacations blog.

    Reply
  8. Mithila Mangedarage
    Mithila Mangedarage March 19, 2008 at 7:45 am |

    Justin you are a very smart guy.I love the Structure and thanks for that.But why all the hard work when you can copy the URL from the address bar?

    Reply
  9. Justin Tadlock
    Justin Tadlock March 19, 2008 at 8:15 am |

    Mithila
    You can’t just copy the URL from the address bar. It won’t play. The URL in the address bar is to a page. The URL in the embed code is to the video.

    Reply
  10. Mithila Mangedarage
    Mithila Mangedarage March 20, 2008 at 1:47 am |

    Thanks Justin,you saved a lot of trouble.I asked this on your other pages too,but my comment got lost amongst other comments by thankers.Is there any way to remove the “Example” page from the top page list?And how can I get other pages listed there too?You’ll see this if you see my blog,I can only have two pages and the example page which only leads to the same about page?Please help!
    Thanks.

    Reply
  11. GPSchnyder
    GPSchnyder April 21, 2008 at 2:52 am |

    Any Idea how to get it working with Vimeo? They do a lot more Resolution, so I choose them to show my work.

    Reply
  12. Thiago Prado
    Thiago Prado May 12, 2008 at 4:21 pm |

    I’ve tried everything and I couldn’t put video on my blog…
    HELP ME

    Reply
  13. Kirk
    Kirk May 12, 2008 at 7:55 pm |

    I’m pretty much a novice at this. I’d like to use the Video Tabs as demonstrated on your demo for the Options dark. After figuring out the Feature Gallery I thought I could figure the Video Tabs out but it ain’t working. I’ve successfully posted the videos to their individual posts, I categorized them under Video and tagged them Video. I don’t understand what or if I need to change anywhere else. Would you direct me to the answers to this quandary. I even successfully used the sidebar widget but I didn’t seem to learn anything that would help me in this instance. The Theme is great and I’m looking forward to getting it together! Thanks.

    Reply
  14. Kirk
    Kirk May 12, 2008 at 10:16 pm |

    Gotcha!

    Reply
  15. Technique
    Technique May 29, 2008 at 4:31 am |

    Hi Justin.

    This is a great theme and rightly called Options because it can be used in so many different ways!

    Quick question… I want to have my videos so that in the main post they are the width that they would usually be in YouTube (425 px) but the default size in your theme. How would you recommend me going about this? Placing videos in the post in a div or span with a separate class? Perhaps by changing the following line in ‘single’ template

    if($video == true) echo $video;

    TO

    if($video == true) echo “”.$video.”";

    Please let me know if you think this would be appropriate.

    Thanks!

    Reply
  16. Technique
    Technique May 29, 2008 at 4:33 am |

    Ooops

    Meant to be span tags inside of those brackets!

    if($video == true) echo "".$video."";

    Reply
  17. Kristian
    Kristian June 2, 2008 at 1:41 am |

    Hi..
    Can I just copy the video link in the widget?

    Reply
  18. Todd A » YouTube troubles in Firefox
  19. toddplex » YouTube troubles in Firefox
  20. Keong
    Keong July 11, 2008 at 10:50 pm |

    I’ve tried exactly like your tutorial and I get this msg

    Parse error: syntax error, unexpected ‘<’ in ……sidebar.php on line 205

    Why is there an unexpected ‘<’
    Anyway I can check which is line 205?

    Reply
  21. MTB
    MTB July 24, 2008 at 6:16 pm |

    You tutorial is great. I used it on my site. Is it possible to integrate Brightcove videos using this technique. I’ve tried, but without luck. Thanks.

    Reply
  22. July 28, 2008 at 2:18 pm |

    Hi justin,
    I working on a site for my wife and i get an error when i copy the code you provided.
    Error is as follows:

    Parse error: syntax error, unexpected '<' in /lots of unnessesay info here/sidebar.php on line 45

    The entire code on the sidebar.php to show the videos looks like this:

    have_posts()) : $my_query->the_post(); 
    	
    	// Get the "Video" custom field Key as an array (displays single Value in the video block)
    	$video = get_post_custom_values($key = 'Video'); 
    
    	<a href="" title="">
    	
    	<div class="v video">
    
    <object type=”application/x-shockwave-flash” data=”” style=”width: 290px; height: 242px; border: none; padding: 0; margin: 0;” id=”video-block-”>
    	<param name=”movie” value=”” />
    	
    <?php
    	} // endif 
    	
    	// If there is no Value for the custom field Key "Video"
    else {
    
    // echo error checking to check custom field errors
    	echo 'Did not add a video URL to the custom field  Key of "Video"';
    	echo '';
    
    	} // endelse
    ?>
     

    Maybe you can get me a hint on what im doing wrong?

    Reply
  23. July 29, 2008 at 4:49 am |

    Okidoki, will do

    Reply
  24. Jay McCarthy
    Jay McCarthy October 30, 2008 at 12:20 pm |

    I am having the same problem as kokkekniven is having above. I keep getting a Parse error: syntax error, unexpected ‘<’ in /home/thirbird/public_html/shopastylist.com/wp-content/themes/options/sidebar.php on line 77

    I cannot find the extra ‘<’

    It would be very helpful to see the entire side bar code so I can copy and paste in where I’d like. Is that possible? I am using the Options theme and I am having problems. Thanks!

    Reply
  25. Arkista
    Arkista November 7, 2008 at 8:28 am |

    Thanks i use,

    Reply
  26. Arvind
    Arvind November 11, 2008 at 4:45 am |

    Thanks a lot. you save me today:D

    Reply
  27. Adi
    Adi December 3, 2008 at 8:23 am |

    Hi Justin, I have a problem using your code.
    Something is wrong, there only latest video appears in all post and also in front page.
    Can you tell me how to solve this problem??

    Reply
  28. iPAS
    iPAS December 9, 2008 at 12:44 pm |

    Sweet ! .. Thank you very much.

    Reply
  29. Movies
    Movies December 10, 2008 at 10:10 am |

    Great piece of code thanks.

    Reply
  30. SimonZ
    SimonZ January 26, 2009 at 6:00 pm |

    Thank you for that framework…

    i modified the section where the video is shown, cause I only add youtube videos. so I used the youtube-embed code an modified the value of the “Video”-key.

    Thak you! You helped me a lot

    Reply
  31. Israel
    Israel February 8, 2009 at 3:28 pm |

    Hello Justin,

    I really tried from various plugins and I decided on her method, because of all that is was more appropriate to what I wanted on my site.

    Congratulations on the ability and knowledge divided us.

    Thank you.

    Reply
  32. Viggo
    Viggo March 11, 2009 at 2:57 am |

    I’m sorry, but i cannot add a video section to sidebar. I’m crying ;(

    Reply
  33. tukang nggame
    tukang nggame May 3, 2009 at 11:51 am |

    thank you has to share tips that make the more beautiful and I will try it now

    Reply
  34. 20+ Tutorials and Resources for Working with Custom Fields in WordPress | Vandelay Design Blog
  35. Roxanne
    Roxanne May 13, 2009 at 1:30 pm |

    Adding video is cool!!! But I’m having some problems adding it to my blog.

    Reply
  36. Rudy
    Rudy June 1, 2009 at 1:19 pm |

    I’m really happy find this tutorial… thank’s for your sharing.. :-)

    Reply
  37. ~Anonymous~
    ~Anonymous~ June 7, 2009 at 5:16 pm |

    Hey i have a question. How do you actually get widgets and stuff onto the sidebar? Because i cant get anything of my choice onto the sidebar apart from the things that is already apart of the wordpress website but i just cant get anything of my own. Can you please help me.

    Reply
  38. Shane Strong
    Shane Strong June 24, 2009 at 10:58 pm |

    That really helped me thanks. If you would like to check some of our stuff out you can go to Chosen for more info. Thanks Again.

    Reply
  39. Albert K.
    Albert K. July 10, 2009 at 11:59 am |

    thanks, I could finally add a video to my sidebar without screwing the entire page lolz

    Reply
  40. Shane
    Shane August 2, 2009 at 9:38 pm |

    Is it possible to pull the latest video from posts into the sidebar w/o having to key in the custom field? Thanks!

    Reply
  41. Jay
    Jay August 10, 2009 at 6:47 pm |

    Hello, I am trying to get a flash video to play in the sidebar of my wordpress blog. No problem there, I just pasted the embed code from Flash into a text widget for the sidebar. It works on home, but when you get onto another blog page within the site, the video’s skin disappears. I read somewhere that it’s because the skin file needs to reside in the same directory as the “index.html” file. Well, obviously wordpress, because of permalinks, dynamically creates virtual directories that don’t exist. therefore the skin file can’t just be duplicated into a directory that is not there… How can I solve this problem?

    Thanks!

    Reply
  42. Fresh Copy Theme | Dress Your Wordpress
    Fresh Copy Theme | Dress Your Wordpress November 8, 2009 at 5:36 pm |
  43. Niv
    Niv November 17, 2009 at 10:28 am |

    for some reason the movie is not displaying on the home page, but in every other page it does…

    Any idea?

    Reply
  44. 23 articles and resources to improve your Wordpress life! | JortK.nl
  45. alex
    alex February 25, 2010 at 3:16 pm |

    Hi,

    Is it possible to add a video and playlist in a fixed page themplate??

    something like

    $mainVid= get_post_meta($post->ID, 'video', true);
    $playlist = get_post_meta($post->ID, 'playlist', true);
    Reply
  46. AlexVerse » Blog Archive » The Power of Wordpress Custom Fields
  47. KyleHelps
    KyleHelps April 18, 2010 at 6:53 pm |

    A lot more than I was expecting! Is there an existing plug-in or could this be made into a plug-in? The instructions are clear but code intimidates most contemporary bloggers.

    Reply
  48. slobjones
    slobjones March 7, 2011 at 5:13 pm |

    Justin, you mentioned that you have updated this code and apparently placed it somewhere in the forums.

    Would you provide a link to the forum thread where the update appears?

    Thank you.

    Reply
  49. Estelle Kiora
    Estelle Kiora April 18, 2011 at 9:06 pm |

    Hi Justin, stumbled upon your post, great stuff! Problem, my Wordpress new post menu says “Add New Post” and I cannot find any “custom field” at all – according to you, at the bottom of the “Write Post” screen there is a section labeled “Custom Fields.”

    Is this by chance only for Wordpress.org or self-hosted users? :( I am currently using wordpress.com. My blogsite is loveyouwrongtime.wordpress.com. Please let me know if there’s a way I can embed the youtube widget into my blog, I would be so grateful!

    Reply
  50. matt
    matt October 10, 2011 at 1:19 pm |

    Great post. Thanks Justin!

    Reply
  51. WordPress Arena: A Blog for WordPress Developers, Designers and Blogger
  52. Yogesh
    Yogesh September 18, 2012 at 8:36 am |

    Thanks for sharing as I was looking for this and found the perfect solution here.

    Reply
  53. Wordpress Custom Fields - Tutorials and Plugins - PelFusion

Leave a Reply

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/Web site in attribution.

Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.