Blogs Eye

Youtube poster plugin

The idea behind the YouTube Posts Plugin was to create content directly from YouTube. I had some sites that were digests of interesting videos. Rather than cut and paste for each video I made a way to automate the creation of blog posts.

With this plugin you just select the videos that you want to place on the blog and press a button. All the videos will then be placed as separate blog posts. You can select if you want the videos to be dated with the current date and time, or you can use the date of the video as the post date.

The plugin executes a search on YouTube by keyword and category. It displays a list of all videos found. You check off the videos that you like and then the program will create blog posts for each video. It first checks to make sure that the video has not already been posted. I keeps a list of previous searches to make things quick and easy.

This is a quick and easy way to add content to your blog on those days when you don’t have time to write 1,000 words.

The plugin require that you register with YouTube for an API application key. This allows you to run searches directly on the YouTube database and get back a list of videos. The API key is free and it takes only a minute to register. You can get the key at:

There are two steps to installing the plugin. First download it or install it from the WordPress repository. Before you can use the plugin you must go into settings and enter an API key. Once the API key is entered there is a link under Posts for entering the YouTube posts.


Latest version: Download Youtube poster plugin v0.7 [zip]


  1. Download the plugin.
  2. Upload the plugin to your wp-content/plugins directory.
  3. Activate the plugin.
  4. Enter yout API key on the YoutTube Poster settings page. (get the key at )
  5. Once a valid key is entered you can post YouTube videos under the Posts heading on the admin page.

This plugin requires at least PHP 5. and SimpleXML

if you are on a hosting platform that defaults to PHP 4, but offers PHP 5 you can add this line to your .htaccess file:

AddType x-mapp-php5 .php
AddHandler application/x-httpd-php5 php

The first one worked for my accounts, and the second worked for my generic linux hosting with cpanel account.




  • Fixed a problem with WordPress 3.0.


  • Added the option to add posts as draft. Added ability to add as pages instead of posts.


  • initial release of working code. I need comments and recommendations for improvements. Please report any bugs.

42 Responses to “Youtube poster plugin”

  1. andrew says:

    yep, the permalink structure is screwed up.

  2. hilda says:

    I am creating my own natural beauty product, and started giving away samples. I do not want to sell the product until the buyer has tried the sample.
    I want my “conditions of purchase” to pop-up when the buyer clicks “add to cart” and require the buyer to agree to the terms before proceeding to purchase. Any ideas on how to program all this on WordPress?

    • Keith says:

      None of my plugins use an “add to cart” button, so I don’t see how I can help. You should ask this question of the person who wrote your shopping cart program.


  3. Sandeep Soni says:

    Thanks for the plugin

  4. Keith,
    I noticed that you use only for the “Kindle-This” plug-in, any chance of adding optional kindle-this destinations ie:
    Maybe a dropdown list where the field is now?
    Thanks for the plugin and your efforts!


  5. Phila Hoopes says:

    Hello Keith,
    Hoping this reaches you…
    I just installed your Rich Text plugin for sidebar widgets – don’t see any difference at all in the way the widgets function. How is this plugin supposed to work, what am I supposed to see? I’m using the Clear Line theme from Vatuma. Thanks!

    • Keith says:

      The Rich Text Widget is like the text widget except it allows you to easily add formatted text – colors, size, font, style, etc – in a widget. It does not change any of your existing widgets.

      If you do not get the rich text menu when you drag it to you widget area, let me know.


  6. olliw says:

    äh, sorry, I am in the wrong plugin section, should have gone to Stop Spammer Registration, sorry

  7. olliw says:

    as a follow up, it seems that this ip
    9 1 . 2 0 7 . 5 . 2 0 6 is the culprit.
    even deleting files and reinstalling doesn’t help.

  8. tomy says:

    Got the same problem again, after adding php.ini into these folders.

    Do you have another suggestion? Will these php.ini make my site load slower?

  9. Keith says:


    I got your email.

    What happens is that the youtube poster goes out and gets lots of information from youtube, and when you add the pages it uses up lots of cycles.

    The plugin can time out quickly on systems that have severe limits on the cpu cycles and timing.

    I use a php.ini file under PHP 5 and it helps.

    create a file called php.ini and add these lines:


    Put this in your root dir, the wp dir, the wp-admin and the wp-plugins dir. It bumps up the default stuff so you can handle the needs of the plugin.

  10. tomy says:

    I am getting this error when trying to run a search for a keyword in your plugin.
    Can you please advice?

  11. Richman says:

    Very Nice. Works perfect in my environment and I have been looking for weeks how to get my PS script on a task.

  12. OnDemonds says:


    it is very useful my site i use pro player.But adding the video using you tube poster it will not use pro player.How can i set it to use pro player by default.

  13. Keith says:

    It should read


    Don’t forget the semicolon.

    The excerpt is used in some themes that don’t display the whole post and it is used in the rss feed. You don’t need to change it if you are not using the excerpt in your theme.

    This way we get rid of the whole excerpt.


  14. Steve says:

    Hi Keith, thanks for really prompt reply. Trying to do what you advised but not sure if I am doing it right. I deleted $media_title ok, but not sure what you meant by changing next line to just $excerpt=””; Do you mean delete all the code which is normally there? (below). Tried that and get fatal error messages and then sometimes it wont display the videos to choose from in plugin.

    Sorry to eat up your time. What should the change be to the following code lines?


  15. Steve says:


    Thought your video poster was superb and the answer to my prayers. However I noticed a problem in that it seems to post two thumbnails to my homepage. By that I mean, once I add a video via your form, it creates two duplicate entries/thumbnails on the homepage – one links through to the post on my site (which is great) but the other links directly to the video at youtube.

    (my site where you can see the problem is above)

    Is there a way I can prevent it from creating two duplicate entries? I only want one obviously which clicks through to the post on my site. (Happy to donate, if I can get this problem fixed). Thanks

    • Keith says:

      The link occurs in the content and the excerpt

      line 603 has the content link.

      the easiest thing would be to delete the word $media_title – this would make the link invisible.

      Change the next line to
      and there will be no thumbnail.

  16. Eric says:

    Is it possible to only locate videos from a certain user? When I try typing in there name it brings up lots of videos that other people tagged with that persons name.

  17. Keith says:

    Hi Keith,
    I’ve installed the plugin, added my developer key but when I click on the “Youtube Poster” menu item in the “Settings” section, there are no settings visible.

    • Keith says:

      There are no settings. The youtube poster link is under posts or pages. This is where you add the posts using the youtube poster plugin.

      I didn’t put it under settings because it seemed more logical to put it under posts. Maybe I should include a link on the settings page to open the poster section of the plugin.


  18. JJ says:

    Hi, I love the plugin, but it does not seem to work right with my theme. After I choose the videos I want and put them in the blog, the blog post is redesigned so that the video is on the top of the page first, and not embedded right in the blog. any tips?

  19. aasma says:

    Great plugin!!!
    I want to search video without selecting any perticula category. is it possible ?
    Thank you

  20. Emmanuel says:

    Suggestion: I would like to also sync youtube video comments with my posts. This can be done different ways, but the simplest is:

    You could integrate with the Genki YouTube plugin simply by adding a custom field “youtubevidid” to each post.

    Let me know…

  21. Tony says:

    Hey everybody

    I found my youtube developers key really easy right here. It did take some digging around.

    Just log in and request one.

    Also.. It would be cool t be able to set the default height and width and possibly make changes to some other imported data. ie: keywords, etc.

  22. Sherry says:

    Never mind I figured it out :) sorry for bugging you..

    • Keith says:

      No problem. The API stuff is hidden and you have to be logged into YouTube to find it, so I can’t give you a specific link. I googled YouTUbe API key to find their instruction page when I was trying to do this.


  23. Sherry says:

    Uhm? Could I get some direction with the google getting an api key please :/ would it be possible for you to email me? I am going nuts trying to figure out where to go and what to do… I am sorry if this is normal for you to deal with but the plug in is exactly what my boss is looking for :/… and I feel daft..

  24. AlfonsoPaz says:

    Hi Keith,

    Can’t find here “No Right Click Images” Plugin. Is it discontinued?

    Although knowing that there are a lot of ways to overcome the “right click” action to get the images on a website, this Plugin was/is, at least, a show-stopper for less informed, bad intended web audience.

    I’ve just installed and everything is working as expected (just fine), but with on of my pages/categories, it’s no doing the job. Can you help? Thanks in advance.

    Best Regards,

    • Keith says:

      I did not put it on the site. I’m sorry. I forgot to add it. It is very new, only a week or so old.

      Anyway, If you could give me the URL, I will check it out.


  25. Kaizer C says:

    Thanks for responding, yes I was hoping to make it compatible with the freewptube theme.

    It puts the video, and duration of it in custom fields, like so:

    Your script puts that and other things directly in the main content of the post which messes up my pretty layout:
    with your plugin:

    Heres my horrible attempt at doing it myself: (lines modified: 576-581,614,624,625(but I have no idea what I’m doing)).

    • Keith says:

      Unfortunately, I am blocked from accessing here because of a firewall (paranoid employers). It looks like you might fiddle with the styles and the content that I create and make it match the style. I don’t want to start debugging the freewptube theme, though. I have a hard enough time understanding my own code.

  26. Kaizer C says:

    Awesome plugin.

    I’m currently using it with wpfreetube theme and trying to add video_code and duration as custom fields while post_content only contains description.
    Should I be using add_post_meta? where? in the for each loop, just can’t get it to work.

    Thanks for your hard work, hoping for an answer.

    • Keith says:

      I’m not sure what you mean. I’m just adding a post and I am using the youtube wrapper for the video. I don’t use any custom fields in the code.

      Are you modifying the code of the plugin? If you are, you have to go all the way back to the place where I build the post. I create the post there because I need to send the information for the videos you choose back to the plugin in order to add them. It is a two part process, first display the selection list and then add the post – that’s why there are so many submit buttons. Then, in the place where I add the post you would also have to add the custom data.

  27. Aran says:

    Sorry, one other question – I see that it’s importing the description with each video – is there a way to turn that off? Or a line that I can comment out in the code? Thanks…:-)

  28. Aran says:

    This looks like a really interesting plugin.

    I wonder, have you seen the video plugin at

    which allows you to have thumbnails under the main video (scroll down a little bit and you’ll see the example) so that you can click on the thumbnail and the main video switches immediately, without a re-load?

    It looks really nice – and if it was possible for your far easier way of importing the videos to be combined with an end design that included clickable thumbnails like theirs, I think it would be just about perfect…:-)

    Anyway, just thought I’d give you a heads-up, in case it was something you could add comparatively easily.

    Thanks again for your plugin,



  29. Tyler says:

    Thank you for your reply.
    Looking forward to your results.

  30. Tyler says:

    Thank you for this plugin.
    Is it possible to have the posts created via subscription?
    That is to say, all videos from all channels the user is subscribed too?
    Also, is there an option to have the all videos from the search sent to ‘draft’ mode and then they can be edited/deleted/published from there?

    • Keith says:

      The draft mode option is a great idea.

      As far as channels, it might be doable, but it would have to be a different plugin. I will subscribe to some channels and see if I can capture the rss feed from inside the plugin. If I can then it can be done. I would then set it on a timer to do it automatically.


Leave a Reply

Login Forum