You post a video to YouTube and on your blog. Dozens of comments poured in on YouTube while your blog receives big fat ZERO comments. Hardly surprising as YouTube have got millions of users. So this is where this plugin comes in. It will grab comments from YouTube and insert them into your post. Your blog will appear more lively and a small SEO benefit: keyword stuffing
One limitation though, YouTube api only shows the last 25 comments, hence older comments cannot be retrieved.
Features
- grab youtube video comments and insert into your blog post
- schedule hourly, daily, weekly
- manual update

Installation
1. Upload as a folder and activate plugin
2. Go to Admin Panel > Settings > YouTube Comments
3. Set schedule or update manually
Usage
1. Go to Admin Panel > Posts, find the post which you want the comments to be inserted.
2. Go to the Custom Fields section and add “youtubevidid” as key.
3. For value, add your YouTube video id e.g X2BEhk1fqZ
4. If more than 1 video, simply add more keys: youtubevidid1, youtubevidid2 and so on

Comment Example

Changelog
Version 1.1
- play nice with new youtube API
Version 1.2
- disable error/warnings (to continue fetching comments in event of an error)
Version 1.3
- Added curl support by Piotr GRD
Version 1.4
- Remove hidden characters in youtube data (which is casuing duplicate comments) (not foolproof but should greatly reduce duplicate comments)
Version 2.0
- New method to prevent duplicate comments (if upgrading from version 1.x, this may result in duplicate comments (grab by 1.x version) during the first run. Treat this version as a brand new plugin with no relation to the previous plugin)
- Display recently inserted comments log
- Remove [..youtube..] text
- Option to skip comment marked as spam on Youtube
License
This plugin is released under the Creative Commons GNU GPL.
Download
Tips & Tricks
The plugin is grabbing spam from YouTube. I deleted it from my blog but the plugin keeps fetching them. How can I to stop it?
The best way is to delete the spam on youtube. Otherwise you can “Unapprove” or set the comment status to pending for that spam comment on your blog.

No comments were fetched when I click “Update Comments Now” since day 1.
PHP directive “allow_url_fopen” or Curl extension must be enabled to fetch comments. Please check with you host on enabling either one of them.
No comments were fetched when I click “Update Comments Now”. It was working fine before.
If you have many videos and many comments, your server may timeout while fetching the comments. You may want to remove the “youtubevidid” custom field from older posts or posts with no new comments coming in, to cut down the no. of comments to fetch. Or ask your host to increase the server timeout / upgrade your server.
Need Help?
Much as I want to provide free support, there are only 24 hours a day.
So if you need a chunk of my time, I’m available for hire.
Browse and Share
» Subscribe to Feed» Leave a Comment
Related Posts:
» WP Plugin Update: Genki Youtube Comments 1.1
» YouTube Comments Plugin on The WordPress Podcast
» Testing of Plugins and Themes on WP 2.5
» Newer Post: Testing of Plugins and Themes on WP 2.2
« Previous Post: Internet Porn & Singapore. What’s the relation?












I’ll manage, but for the rest, you might want to supply a wget-able link.
Also, I was about to translate it to Hebrew, but it’s not gettextable.
Too bad…
Wouldn’t that be a security risk?
@Eric: Tornado Twins told me about this plugin, I will use it! Thanks man!
Can elaborate on the wget-able link? I’m clueless on that.
Well, you can’t download this through wget.
A direct link to the file will work, but if you need to count the downloads then you should use something that simply redirects to the file after counting the download.
Right now the download link gives you the zip file (I actually didn’t notice this earlier), but it’s saved with filename index.html?load=youtubecomments.zip
Hmm..this is really something new to me. I’m using the WS DownloadManager, not sure if it can do the wget thingy.
Possible its working with WP 2.0.3?
Would be great.
It works on 2.0.7, so I suppose it should work on 2.0.3
works on 2.2???
It should. Having some problems?
Great plugin but i get this message when I try to update it.
Error retrieving data from YouTube fail.
I set up everything in your directions. Any suggestions?
I have updated the plugin to provide better error message. Download the plugin and upload again. You should be able to narrow down the problem
Thanks for that update it tells me that it is an internal error in youtube. To tell them exactly what is wrong.
Thanks for the update.
Hopefully the error is not related to my plugin
Any chance that you could add spam filtering? I delete certain comments from my WordPress, but when it updates, it re-adds them. Would it be possible to make it so that once it’s deleted it can’t be readded?
You can unapprove them or mark them as moderated
It was my dumbass fault I was putting my key ID in the value box when it should’ve been the video id from the permalink. The plugin works great thanks.
Ahh.. I see. No problem Andy.
hi, this is one of the best plugins, but,
please, can you make it work with another sites like youtube, let’s say… metacafe or flurl ?
this will make it the best plugin!
Unfortunately no, metacafe/flurl does not have api for video comments.
Any chance that you could add spam filtering? I delete certain comments from my WordPress, but when it updates, it re-adds them. Would it be possible to make it so that once it’s deleted it can’t be readded?
If youtube can’t stop them, then I don’t think I can
Read up the Tips & Tricks section for a workaround.
Hi!
I like your plugin and actually use it on my site. What I wanted to ask though: is there any chance to get the comments as threaded comments, they way they actually are in youtube? There are a lot of plugins for wordpress out there that feature comment-threading. Would be soooo cool.
The amount of coding required.. takes a deep breadth..
hi
any body have information about extensions for joomla
Great plugin, many thanks. I was having some problems getting this working in WP 2.6. I made some adjustments and it now works great. I documented what I did at
http://www.iamdek.co.uk/2008/09/09/genki-youtube-comments-broken-a-fix-for-wordpress-26/
This may prove useful for some of your other users if they are having similar difficulties.
Nice detective work iamdek. Thanks
Is there way to make the [..Youtube..] inserted into the comments imported actually LINK to the youtube page it originated from?
LINK to the youtube page it originated from = the youtube video page? Change line 155 in genki_youtube_comments.php to
$comment_content = ' <a href="http://www.youtube.com/watch?v=' . $videopost->meta_value . '">[..YouTube..]</a> ' . addslashes($ytvideo->CONTENT[0]->_text);
But I wouldn’t recommend changing that code. Reason being you already have existing comments so changing the code will re-grab the comments again, resulting in double comments.
Gotcha. Thanks anyway. I’m loving this plugin!
Thanks, very good plugin.
does this work with the lates version of wp. i’m getting code errors.
It should work. What are the code errors?
Please Help on this..Thank you
http://www.youtube.com/my_profile_dev
The APIs accessed by this developer ID program have been deprecated and are no longer supported. To use the new APIs or get information about migrating your applications, please visit the YouTube Developer site at code.google.com.
What verion of the plugin are you using? The latest version should be 1.2.
支持下,太棒了,这个插件,谢谢作者!可惜我英文不好!!
http://www.90606.cn
可以做个友情连接吗?
Awesome plugin. Is there anyway to grab the YouTube user’s email address, instead of using [email protected]?
Nope. YouTube doesn’t publish user’s email.
Love the plugin. Cheers!
Do we need to keep [..YouTube..] in the comment box in order to update comments? Or can it be deleted without creating double entries?
So I’ve downloaded my first 25 comments to my blog. Another five comments have been added since then. What happens when I update next time? Do I just get the new comments added?
Thanks again!!
As you have downloaded comments before, there will be double entries if you remove the [..YouTube..]
What if the tag is not removed? Does the plugin add new comments to the last 25 fetched? Or does it overwrites the previous 25 downloaded with the latest twenty-five?
Why do I get double entries whenever I update?
Out of the box, the plugin should only fetch new comments. It will check for existing comments and ignore them. What’s your blog url?
Hey is it possible to change file_get_contents() with curl
Piotr GRD got you covered here
Thnx Alot Man you really save me, for all that wanna see this plugin working with curl visit http://muzikeshqip.net
Hello.
I want to announce a little modified version of this plugin. It uses now cURL instead of file_get_contents for all servers where allow_url_fopen is disabled. Not a big modification but can be useful for persons who are not able to modify it by themselves.
http://www.110mb.com/forum/filegetcontents-problem-with-wordpress-t41883.0.html;msg356663#msg356663
Greetings
Piotr GRD
Thanks Piotr!
Could you explain how to moderate comments in WordPress 2.7.1? I would like to manually approve each comment it fetches, but the instructions you show above don’t apply to the new version. Thanks for the great plugin?
All comments are approved by default. if you wish to manually approve the comments, you need to modify the plugin. Open genki_youtube_comments,
line 156, change to “$comment_approved = 0;”
line 179, change to ” //wp_update_comment_count($videopost->post_id);”
Thanks…I tried that, and it worked. But if I click “download comments” again, it re-downloads all of those comments I just un-approved. What do you suggest?
Do not delete or mark them as spam. Set the comment status to “Moderated” (see picture under the tips & tricks section).
Great plugin!
But I have one problem.
I modifited this line: “line 156, change to “$comment_approved = 0;”
(it is line 226 in my file)
And I can’t find this:
” line 179, change to ” //wp_update_comment_count($videopost->post_id);” ”
And…. Comments are approved by default still.
line 226, change to “$comment_approved = 0;”
line 237, change to “//$wpdb->query("UPDATE $wpdb->posts SET comment_count = comment_count 1 WHERE ID = '$comment_post_ID'");”
Tested ok with comments now marked as Pending.
Your screenshots look a lot different than mine…I have a newer version maybe? My wordpress does not have that option.
Here’s a screenshot.
http://www.upliftmysoul.com/wordpress/wp-content/uploads/2009/04/picture-12.png
Oh yea.. since you modified the plugin, the default status is already “Pending”. So you don’t need to set the status to “Pending”. Leave them as they are, and don’t delete or mark them as spam.
Great Plugin!
Is there a way to remove the link back to youtube?… so it just leaves the auther screen name, but no link back to their account?
Comment out or remove line 152 ($comment_author_url = …).
great plug-in – thank you!
only suggestion – it would be great to be able to show or hide the “[..YouTube..]” text on each comment. any plans to add this feature?
thx
I think I will leave this as a hack, as switching between the 2 will result in duplicate comments.
Replace
with
Thaks for this! I will definitely use it in one of my video blogs.
What a fantastic tool. I am mad I didnt find it sooner
Hey, can you please tell me if this will work on 2.8.x?
Looks really useful.
Should not be a problem.
Thanks, I’ll give it a go.
Hi, this is a fantastic plug-in, but it stopped working for us when we upgraded to 2.8. Any chance you’ll add support for the latest WP build?
Specifically, it doesn’t update automatically and when you click “Manual Update Comments” nothing happens.
Thanks
No problem on my side. I’m on WP 2.8.2.
Just wondering if it would be possible to push comments from a Vimeo.com video (or really any other video sites) as well. Apologies if this is a ridiculous request as I’m unaware of the labor involved in this. Just curious as I have a portfolio blog of sorts and Vimeo is a little more for us “art-folk.”
Thanks
Possible as vimeo’s api allows for comment to be retrieve. I hope someone can pick this up and modify the code.
Well that is good to know. Hopefully someone (smarter than I) will be able to conjure something up. I spent a few hours looking into ways of re-engineering your code with the Vimeo API docs but I’m not too bright when it comes to this stuff
Thanks again.
Great plugin, thanks for creating it.
Great plugin thanks!
Such a great plugin….
I just updated to 2.9 and now it won’t bring over youtube comments from any new post since I made the update. Oddly it still brings over the comments from older posts.
I NEED this plugin in my life – it’s my absolute fav! Is anyone else having a 2.9 issue, if so how to fix it?
I just kept pressing Update Manually and after the 4th time it worked on the newer posts, maybe a backlog? But I have been noticing since 2.8.2 and higher the updates take longer and longer to do so automatically
Sounds like your server is overloaded while fetching too many comments. You may want to reduce the number of videos to be fetched by deleting the “youtubevidid” key in some older posts. A faster server may also help.
Thank you so much for making this awesome plugin. Your plugin combined with the seo super comments plugin is a smash success. THANK YOU SO MUCH!
can i also retrieve video from youtube with this plugin? or only comments? thx
Only comments.
I love this plugin !! only have 1 problem..
See my blog post : http://www.robocnc.nl/?p=661
The post of xumuk3 says: keeps on coming in.
I use the plugin 1.2 and did not do any changes.
What i do know is i checked youtube, and the post was marked as spam.. i unchecked the spam tag, deleted the comments on my blog, and updated a few times, still the same..
Hope you can check this problem.. (Something with the spam tag…??)
Don’t spam or delete the comment on your wordpress. Mark it as pending instead.
That is no solution…
I trashed all of them except 2.
1 of them i leave un harmed (just the comment to show on the blog)
1 of them i mark as pending…
Update, and still it keeps on coming in…
every hour it downloads the same comment again..
What i ment with the spam is that somehow or someone marked his comment as spam “on youtube” not on my blog..
I only tell this because this may be the problem/bug…
It works fine for all other comments (about 150) only this one keeps coming in..
Thanks! This plugin is awesome!
If you use IntenseDebate for comments, this plugin does NOT work.
Brillant! Just what I was looking for!
Hi,
I’ve used your plugin – But am not able to get the comments for the video in this post – http://www.healthandwellnessprograms.in/alternative-healing-tuning-forks-2/
I’ve used the video -id in the custom field.. Should I add something inside the post to get the comments for the video in this post.
Pls help.
Thanks
Raghav
The key should be “youtubevidid” and value is “0AcxHIbHEpw”.
This plugin does not work in WP 3.0
I too would like to know if this will ever work with WP 3.0.
Works for me.
added the the plugin followed the fields as you said. the comments show up in the back end of my wordpress site. but when i publish the post. Nothing is showing up?
What’s missing
Looking at your comments feed, this plugin has already done its job of grabbing the comments.
http://resistanceents.com/comments/feed
Please check with your theme author whether the theme is coded to show comments. As I do not see any comment form or fields. So I doubt even normal comments will show up.
Once you add the plugin and activate it, select a post that you want to add the comments to. Then go to the custom field, and add a new custom field. The name can be whatever you want, but were instructed to use youtubevidid by default,then enter the video id in the value field (can be found if you go to YouTube, select the video, click share and that will tell you the id, ex. bz9cwSvb4Q); update and then save. So here is where I had to play around to figure this out. After all that (you will have to enter and add the custom field and unique YouTube video id to each post with a video on it), go to the “settings” (left sidebar), “YouTube comments”, select an option on how often to update, click “update”, and then click “update comments now”. It worked for me and hopefully for you to. Best of luck.
Weird, I tried and it seems it doesn’t work :
http://www.letransistor.com/3198-sessions-camelia-jordana-05-11-2010
I added the costum field and update, but nothing seems to happen :/
Any idea ?
Thx
No problem for me. See the comments for your video at my WP 3.0 demo blog
Have you click “Update comments now” in the YouTube Comments admin page?
Hello,
I’ve downloaded your plugin and followed the instructions by putting in youtubevidid into the custom field alongside the value but i can’t seem to get this to work for my wordpress 3.0. When i click update, it does not add the comments into my blog.
Am i doing something wrong, here is the video i am trying to use. http://www.youtube.com/watch?v=qG5M5Je-IJc
I am using the value ‘qG5M5Je-IJc’ – i can’t seem to get it to work for any of my videos on my blog.
I’ve followed the exact instructions recommended over and over again, but i have a feeling maybe my wordpress isn’t supporting your plugin? My blog allows comments just fine but not youtube comments.
Try this version
thanks so much genkisan, it worked
If you are one of the people who’ve edited the template to remove the “[...YouTube...]” part, be careful when updating since it overwrites the template and adds that back. The plugin will view the “[..YouTube..]” prefix as a new comment and re-add everything, resulting in hundreds or thousands of dupe comments in my case.
It is totally my fault for not realizing, but just posting this here to maybe save someone else from making the same mistake that I did. It will take a long time to clean up this mistake.
As the new versions of wordpress only require a link to youtube and it will embed the video automaticly in the post…
… It would be really nice to get your plugin automaticly sync with youtube-links in the post. (without manually have to use custom fields)
Thank you for a great plugin… please get back to me if there already is a way to get this to work automaticly.
This plug in is a great idea but: Does it work with Disqus comments?
Not sure but I think not.
We have Genki and Disqus integrated together. It seems to be working although there is one bug.
I did have to use the Disqus export function for it to pull comments from YouTube, which worked, but then what it did was give the same profile on the latest commenter for ALL commenters. You can see an example here:
http://www.asianmanwhitewoman.com/admin/he-said-she-said/why-i-am-not-interested-in-dating-asian-men/
Is there a correction for this? Thanks and I think this is a really good plugin!
I did a quick import and from Disqus.com dashboard, the imported comments seems fine,
with the correct commentator for each comment.
Only the display on the blog post is incorrect.
You may want to check with Disqus on this.
can you add an option to disable the [..YouTube..] prefix, so that people like me, who just have their blog with comments and videos from youtube, can show it as normal comments?
Try this hack.
I really want to know how this plugin creates the widget on the side bar cuz I just installed and I don’t see it showing up. I want it to show up like: https://skitch.com/goryan/rwg1e/online-video-marketing
This plugin doesn’t create any widgets. It simply grabs youtube comments into wordpress.
I was going to use this plugin as I have heard great things about it. However, I don’t seem to have the Custom Fields Boxes to input the proper youtube ids and such. Is there a way around this?
LOL, Nevermind I’ve found the issue in Screen options for my posts. Sorry to bother you. Time to put this plugin to work.
I seem to be getting a bug where the comments are being duplicated, and i have been having to disable the custom field for the posts, which is a bit of a pain.
Seems like you edited the plugin to remove the [..youtube..] text, which may have caused the duplicate comments. See http://ericulous.com/2007/05/16/wp-plugin-genki-youtube-comments/#comment-9266
oh i see… i’ll switch back now
I had this plugin running like gangbusters, but ever since I changed servers I am not importing in any comments. Are there any configuration issues I should be concerned about regarding my new server? htaccess or anything like that???
Thanks!
Not sure about that. Maybe you can check if there’s an error log file on your server.
Fantastic plugin. Works great! Thank you…Any chance of you modifying it to grab Facebook video comments or even making separate plugin? It could work under the same premise of getting the video id and pulling the comments into any given blog post comments. I searched and can’t find anything that import Facebook video comments specifically. Please share your thoughts about this.
Thanks!
Dun think I’ll be working on that.
Awesome…can’t wait to try it! Thanks!
Love this concept as Comments are easy on YouTube, but like you say, my blog goes quiet. Install went great, but when I went to edit my posts, the “custom fields” is absent! Is this a WP 3.2 issue or am I just going nuts?
OK, I may be nuts, I see there are some custom field plugins, let me try these, any suggestion on one that works best with your great plugin?
LOL! Or I could just read above Tony’s comment! Thanks options works a ton better! Great plug in!
Hi guys, I’m having a problem with Genki Youtube Comments, i can’t see the box under the post “custom Field” I’m using the theme IBLOGPRO 4 from pageline.
http://www.pagelines.com/themes/iblogpro/
Can you help me, i did everything, but i can’t see the custom field.
Thanks in advance Agustin Tash.
http://ericulous.com/2007/05/16/wp-plugin-genki-youtube-comments/#comment-23161
I’ve been having the “[..YouTube..]” text on for a while now, however I am still seeming to have duplication for specific comments, for instance here: http://bit.ly/nqZGiq. Is there a way to fix this?
Sorry but I’m not sure about that.
oops, i did a preview link… http://j.mp/nqAatZ
I’ll try reinstalling the plugin, and see if that helps
oh well, i’ll just have to keep removing those duplicates
oops, i did a preview link…
I’ll try reinstalling the plugin, and see if that helps
I am wondering though do I need to keep naming my custom fields sequentially when I write a new post, e.g. youtubevidid21 for a new post when I added youtubevidid20 on a pevious post? Or can I start over with (youtubevidid, youtubevidid1, … ) on a new post.
Thank you. Your plugin is a real asset for our video site.
You can start over with youtubevidid, youtubevidid1…
Is there any way to change the date/time stamp on the comment from GMT to MST?
I don’t think so as the time is as from youtube.
It would be terrific if the Youtube comments *COULD* appear in a sidebar widget — my WP theme has a video stream that is not set up as a page or post and nowhere to include the appropriate code to generate this plugin.
Is there some way to do this via a text widget perhaps?
I doubt so since these are actually converted to wordpress comments.
Ahh, ok. That’s a shame though. I will have to reconfigure my videos pages. Thanks!
Thanks for sharing. I was looking for wordpress youtube player
Do I need to keep naming youtubevidid, youtubevidid1, … , youtubevidid3867, and on to infinity?
Or can I drop back to youtubevidid on the next post, with the series only for a particular post?
Pleas eanswer.
Thanks, Cris
Never mind. I see you already answered.
Thanks,
Cris
This looks like a great plugin! But I’m having trouble getting it to work. My server does have curl on, but when I click on update it doesn’t fetch any comments. Does this work with WP 3.2.1 ?
Yes. It works with 3.2.1.
Hmmm Ok I just had my host set up allow_url_fopen as well. It’s still not working for me. I’ll try reinstalling it again. I also have buddypress installed. I don’t know if that would be causing any problems?
I reinstalled it and followed each step, but it still didn’t work. :s Should the manual update, import the comments right away or is there a time laps? I’ve tried using both the manual update and the time setting. Neither have worked so far.
Sorry for so many comments. I’ve been playing around with this today and also found a vid how to on it. So I know it’s not working right on my site. I’ve installed it properly, but when I click on the manual update, the screen refreshes, but doesn’t show a list of imported comments below it. It’s just all white. I don’t have any other comment plugins installed other then a rating system. Disabling it didn’t change anything. I’ve tried with my 2 newest video posts, and they do have comments on YT.
Odd why I can’t figure this out…
Probando a insertar video de youtube en un comentario http://www.youtube.com/watch?v=6q3XulAwjQc
If anyone’s interested, I edited my comments.php template so that the YouTube comments display a YouTube image for the avatar. Here’s the code…
Note: I had to remove at the beginning and end as well as before before img and the closing tag of img so that you could see the code in this response.
?php
if ($comment->comment_author_email == “[email protected]”) echo ‘ img style=”height:40px; width:40px” src=”http://s.ytimg.com/yt/img/creators_corner/YouTube/40x40_yt_white.png” /’;
else
echo get_avatar( $comment, 40 );
?
Thanks for the work.
But where should I put this line of code?
I tried but it doesn’t work.
Is this against copyright laws if you take the comments from youtube or someone else’s video?
Hi, not sure if you know or not but there seems to be a problem when a video has over 200 comments. All pages with videos that have under 200 comment load fine. However, those with more than 200 comments load some strange blank screen.
It would be nice to set the number of comments to display and allow the user to page through them, too.
PS: I love it
Ok sorry, it’s not the plugin. It was WordPress. To solve the problem I went to settings > Discussion > and then set the “Break comments into pages with” to 50.
The YouTube Comments plugin appears to be using syntax in error, as indicated in my error_log in public_html –
“[28-Jul-2012 03:32:47] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 3 for query INSERT INTO wp_comments
(comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent, comment_type, comment_parent, user_id)
VALUES made by do_action_ref_array, call_user_func_array, insert_youtube_comments”
Will there be an option to also import the user’s avatar icon from youtube into the post or make it an option to allow or disallow it.
Not possible as the WordPress and Youtube avatar system is different.
How to activate the plugin after download it?
Thanks
Walnick