WP Chaturbate plugin

WP Chaturbate is a WordPress plugin to show chaturbate.com webcams on your WordPress page.


You can download the latest version of the plugin here: wp-chaturbate-3.1.0
There are important changes in the 3.1.0 version. See http://sexplugins.com/2015/03/06/wp-chaturbate-plugin-version-3-1-0/ for more information.
If you’re currently using version 3.0.0, you can upgrade automatically. Just go to your plugins page and click the “update now” button on “WP Chaturbate” plugin. But if you’re using older version, do it the old way – just delete the old wp-chaturbate directory and upload the new one to your plugins directory. Or deactivate and delete the old version from your WordPress plugins page and install the new one.

Installation and usage

  • Unpack the plugin and copy the directory ‘wp-chaturbate’ to your WordPress plugins directory. Or use the plugin upload feature (Plugins -> Add New -> Upload)
  • Go to your plugins page and activate the WP Chaturbate plugin
  • Go to Settings -> WP Chaturbate and set your affiliate ID. If you don’t have a chaturbate.com affiliate account, you can register here

If the plugin is installed and configured, you can enter the following codes into your pages or posts where you want to display chaturbate.com cams:
[chaturbate] – for all online cams
[chaturbate gender=f] – for female cams
[chaturbate gender=m] – for male cams
[chaturbate gender=c] – for couple cams
[chaturbate gender=s] – for shemale cams

[chaturbate maxcams=9] to show 9 cams
[chaturbate gender=f maxcams=9] to show 9 female cams
[chaturbate gender=m maxcams=9] to show 9 male cams
[chaturbate gender=c maxcams=9] to show 9 couple cams
[chaturbate gender=s maxcams=9] to show 9 shemale cams.
You can use whatever number you want. This will override the max number of cams option set in the settings page and disables the pager.
These shortcodes work since version 3.1.0.

For older versions, use:
[chaturbate] – for all online cams
[chaturbate-f] – for female cams
[chaturbate-m] – for male cams
[chaturbate-c] – for couple cams
[chaturbate-s] – for shemale cams
[chaturbate-9] to show 9 cams
[chaturbate-f-9] to show 9 female cams
[chaturbate-m-9] to show 9 male cams
[chaturbate-c-9] to show 9 couple cams
[chaturbate-s-9] to show 9 shemale cams.
(These codes will still work in newer versions too. So you don’t have to change all your pages. But if you’re making new pages, please use the new shortcodes.)

Since version 1.2.1 you can also use php codes in your wordpress theme files to show the cams. The code to use is:
<?php wpchaturbatecams("x",#); ?>
where x is a (for all cams), f (for female cams), m (for male cams), c (for couple cams) or s (for shemale cams). And # is the number of cams to show (Insert 0 to use number of cams set in the settings page).
For example, to show 3 female cams:
<?php wpchaturbatecams("f",3); ?>


Since version 1.3.0 there is also a sidebar widget. Just go to Appearance -> Widgets and add “Chaturbate cams” widget to your sidebar. You can set how many and which (female, male, couple, shemale or all) cams to show. You can add more than one widgets. If you click a thumbnail in the widget, it opens the cam in Chaturbate not inside your page.

If you use this plugin, please subscribe to this blog by e-mail or RSS (see links in the right sidebar under “Subscibe”). This way you’ll be notified when new versions of this plugin come out.

NB! The plugin is made so that it randomly sometimes (i.e. about every 10th pagevisit) uses MY affiliate ID instead of the one YOU set in the settings page.


You can see this plugin in action here.

If you have any questions or suggestions about this plugin, write in the comments.

121 Responses to “WP Chaturbate plugin”

  • Jim says:

    How can i set the number of cams visible on the page?

    Greets and thx for the nice plugin

    • admin says:

      You can’t do it with version 1.0.0. I just made a new version 1.1.0 (see above for the download link). With this version you can set the number of cams visible on page in the WP Chaturbate settings page.

      Try it and tell me if you have any more questions.

  • Goliath2k says:

    Getting this error..

    Warning: Invalid argument supplied for foreach() in /home/*************/wp-content/plugins/wp-chaturbate/wp-chaturbate.php on line 174

    One line 174 it shows me
    foreach($b as $key=>$value) {

    any help would be nice,


  • hottest pornstars says:

    Here is another example..

    just set it up

  • Gay4Boys says:

    This plugin uses $1 per sign up option. Chaturbate has now changed to revshare online. This plugin is broken until it uses revshare.

  • Gay4Boys says:

    Thanks admin :) quick reaction. Much Love 😀 I send you lots of traffic from my wordpress sites :) We should communicate about other things you could help me with maybe sharing profit.

  • Gay4Boys says:

    Another thing, what cache plugin would you recommend? I have a very busy site however it crashes wordpress without a cache plugin, and it doesn’t really work with any I’ve found.

  • andy7848400 says:

    Why every time when i tried to type and send the message in everyone room it doesnt appear? Will using the plug in will fix this problem?

  • karyna1 says:

    how can i insert here?

  • Gay4Boys says:

    Can you make a for putting the code in our theme or by html ? I have a page dedicated to showing 20 cams to browse, but I also want to put the cam preview thumbnails below actual posts on the website, so that when people look at my posts they also can see a smaller amount of previews. I set the page to 20 cams but I don’t want that many below each post. I would be sending you much more traffic!

  • Chaturbate says:

    This plugin is awesome!! I used it to build my site!

  • kaco says:

    i upload the plugin then activate it ,nxt thing i add my affiliate link but this small cam preview thumbnails at post keep disappear and its say model is offline when i click on it


  • kaco says:

    no there were online its the same with very model ! i dont know if u can help me but we can talk in email if u would like to help

    i want to publish a blog and that crippling me

  • kaco says:

    ok i replied to ur message :)

  • Chatfreak says:

    I nice plugin …

  • Lan says:

    Hi it would be very interesting if you could add a sidebar widget for this that would open to a new window of chaturbate instead of displaying it on the same site. Also will chaturbate ban my ip because of the frequent requests? I have a busy site.

    • admin says:

      I think I could do that sidebar thing. I’ll upload a new version when i’ll do it.

      I don’t think chaturbate has any problems with that if you have a busy site.

    • admin says:

      Hi again!
      There is a sidebar widget now since version 1.3.0. Download the latest version and try it.

  • Visitor says:

    Chaturbate opened $1 PPS again

  • Justin says:

    the cams does show, but when I click on it, it refreshes the page. am i doing anything wrong?

    • admin says:

      So you click on a thumbnail and it just refreshes the page and shows thumbnails again? Does the url on the address bar change after that refresh?

  • александр says:

    помогите мне! я новичок по созданию сайтов,оъясните ,я вот установил на сайт wordpress-3.4.2-ru_RU , что дальше? подскажите чтобы на моем сайте были камеры онлайн,как это сделать?

  • alex says:

    hello, prompt I in this case the beginner, I established
    wordpress, activated a plug-in, and I didn’t have a camera online how to make the page with cameras online?

    • admin says:

      You need to add a new page (Pages -> Add New) and copy the chaturbate code in the content of this page. For example copy the code: [chaturbate].

  • alex says:

    many thanks, I will try can I will turn out simply recently the beginnings sites to be fond so I need to study and study, there will be questions will write you Thanks!

  • alex says:

    hello! at me it doesn’t turn out, everything made as you spoke and here that writes,Error: You haven’t set your chaturbate.com affiliate ID. Go to admininstration panel and then Settings -> WP Chaturbate to set your preferences!

  • alex says:

    Здравствуйте, я все сделал как вы сказали ,но почему то ни чего не получилось! помогите вот мой сайт http://viptual-sex.ru/

  • alex says:

    Hello! all the same it is impossible, everything made as you told, here I wrote down video here http://viptual-sex.ru/
    look what not so I do? here it inserted instead of xxxxx http://chaturbate.com/affiliates/in/wFE6/SWxWz/? track=default, activated a plug-in everything kept, втавил on the page the code [chaturbate] and writes all the same Error: You haven’t set your chaturbate.com affiliate ID. Go to admininstration panel and then Settings-> WP Chaturbate to set your preferences! I inserted id as it is necessary and kept that to me help to do!

  • alex says:

    я втавил сюда wp-chaturbate-1.3.0 вместо этого http://chaturbate.com/affiliates/in/ZmU7/xxxxx/?track=default вставил вот это http://chaturbate.com/affiliates/in/wFE6/SWxWz/?track=default ,и все равно камеры онлайн на сайте не появляются, сдесь видео я сделал http://viptual-sex.ru/ ,посмотрите что не так я сделал?

  • dima says:

    Hello! prompt as to make the same site? ? ? AdultCamsCommunity.com

  • dima says:

    please! upload video as to make it! I will be very grateful!

  • alex says:

    thanks I understood id found where to insert, now I have other question how to make here such site? AdultCamsCommunity.com , it is very necessary, please help!

    • admin says:

      This site is not made with my plugin. But you can make something similar with my plugin too.

      WP Chaturbate plugin is not a complete live webcam site. It is just a tool you can use to build your live webcam site with WordPress.

      First choose a theme for your WordPress. You can search themes from http://wordpress.org/extend/themes/ or right from your site’s admin interface – Appearance -> Themes -> Install Themes. You can install some simple and minimal theme. Or create your own theme.

      Now add the pages you want. Go to Pages -> Add New. Then add a title. For example “Females”. And add “[chaturbate-f]” as the content of this page. Do the same with other pages you want. For example add a page called “Males” with content “[chaturbate-m]”, page called “Couples” with content “[chaturbate-c]” and page called “Shemales” with content “[chaturbate-s]”.

      Now you have a site similar to AdultCamsCommunity.com

      You can also add other content and ads if you want.

  • alex says:

    Hello thanks, very much helped! and you help only on the plug-in? it is possible to ask to you questions not on your plug-in, simply I was engaged recently to create sites, it is very interesting to me to communicate with the developer the Internet of tools

    • admin says:

      This page is just about the plugin. I think you could go to some adult webmaster forums, to ask other questions. Go to gfy.com for example. I guess there are adult webmaster forums in russian too.

  • roma says:

    Hello! explain please, I was registered on ru.chaturbate.com, there linkcodes here such chaturbate.com/affiliates/in/g4pe/SWxWz/?track=default that is if someone follows this link chaturbate.com/affiliates/in/g4pe/SWxWz/?track=default and will be registered, I will receive $1? so? and money is enlisted into the account only after filling of a form of this? ru.chaturbate.com/affiliates/payoutinfo/ or, it is simple to me to be registered and give this reference http://chaturbate.com/affiliates/in/g4pe/SWxWz/?track=default, according to it will be registered and I will receive $1? so?

    • admin says:

      Actually this has nothing to do with my plugin. You better ask chaturbate this question.

      But the money you earn will not be lost, you just can’t take it out, before you fill out the payment info. I guess you can wait until you have enough money on your chaturbate account and then fill out the payment info.

  • roma says:

    Thanks is clear! whether only with Russia they work, can money will it is impossible bring into Russia, I wrote to them webmaster@chaturbate.com, can will explain, the principle of that how to earn

  • xcams says:

    hey hru :) , recently i realized that chaturbate stopped refreshing their content on the white label ,well this help me in some way because my free host account it does limit the bandwidth

    but could this effect the seo ? i have way less traffic now

  • Partha says:

    Hello there,
    I have register in http://chaturbate.com/affiliates.
    How can I get my Affiliate ID.
    Please let me know.

  • Alex says:

    Seems to be a nice plugin,however i have a problem with it.
    In Firefox when i click the thumbnail or the link the only think i have get is:
    For example
    yabambi’s profile on chaturbate.com
    If you haven’t registered yet, click ‘sign up’ below to start chatting. It’s free and no e-mail required.
    No room displayed,and the only way to see the page is right buton and open it in new tab.
    The same think in your page
    Is there problem with my firefox settings or addons or the plugin not suport this browser

    • admin says:

      It does work for me on my site and also on your site (xexiter.com). I’m using firefox version 20.0. Maybe it’s a problem with your firefox. Try clearing the cache or disabling the add-ons.

  • Alex says:


  • Alex says:

    it was Adblock Plus.
    Maybe a good idea to add some text to user in order to view the content

  • Mark says:

    I used this plugin for a long while. If you are a little creative on your own you can tweak it easily and icw a nice theme it most definatly converts. Though, i had to change my marketing plan, because of seo purposes. Cam pages don’t have their own meta description, so Google flags alot as duplicate content. This is not realy a big deal, but if you want to broaden your search results you always have a better chance when your website gets fully indexed.

    Also, it’s missing a feed cache, i implemented one myself later on. I’m also using a feed cache on my current website. Alexa mesured the load time at 0.6 seconds which realy benifits your position in Google.

    Let me grade this plugin:
    Conversion: 8
    Looks: 7

    It converts, looks nice, but could use some tweaking. Eighter way, thanks for a great plugin. It realy helps people that don’t know alot about programming and gives them a good startup. So most definatly recommended!

  • chaturbate cam4 cam says:

    Oh great plugin’s thank you so much. Is it ok on WP 3.6 ?

  • James says:

    Does it works with the latest version of WordPress ?

  • Pierre says:

    Good theme, but could have the signup sign, it dont show and its alittle tight when clicking on a cam and it popups…. anything u can do about this?

  • carlos says:

    hello the plugin is fantastic but I have a question what theme for a webside cams you RECOMMEND? thanks greetings

  • kaco2 says:

    Sorry , The html code is missed up , I was talking about BongaCash

  • V_RocKs says:

    Your plugin has a GLARING problem with XSS and not filtering the user input on the $cam variable. Append this to your sites URL: ?cam=nawtymimi

  • V_RocKs says:

    Bare minimum fix:
    function filter_wpchaturbate_title($title) {
    if ($_GET['cam']) {
    $title=htmlspecialchars($_GET['cam'], ENT_QUOTES)." - ".$title;
    return $title;

    • admin says:

      Actually this is not that big problem. WordPress filters the title itself in some way. So you cant put any javascript or php code there.

      But you are right, I should put some filter there myself too. Thanks for noticing!

      I made a new version where this problem is fixed. Download link is on top of this page.

  • Thomas says:

    This looks like a really amazing plugin, thanks! I saw someone on GFY mentioned a paid version that doesn’t have your affiliate links in it? Was that a joke or is that true? I don’t mean this to be offensive.

    Talking about this:

    Originally Posted by GFED View Post
    Thanks for this plugin, it works great. Would you accept a donation to remove the skim to your affiliate id?
    Yes, I thinks it’s possible. Give me your e-mail or contact me from sexplugins.com/contact/

    Thanks and great work!!

    • admin says:

      I don’t know if he was joking or not. He didn’t contact me any more.

      • Thomas says:

        Could you contact me through my email, or on Twitter at @NE1UP? Sorry I didn’t get this message sooner, I’m only here because I just broke the plugin on my website somehow and was seeing if there is a new version. 😉

        Anyway, I am still interested in paying you for development on this plugin? I am a single parent with not a lot of money, but I think working together on making this plugin sing on my website would be to both our benefit? It was up at ne1up.com until I literally just now broke it messing about with stuff.

        Contact me if you’re interested, especially with a quote for time/work? Or just ideas… Love talking to entrepreneurs and coders, so much respect for y’all. Thanks for the great plugin, it has earned me money since I started using it several months ago and I owe that to you!

        Hope you’re well!


  • frank says:

    Can you please make it cache the webcams for at least 30 seconds? It would make a phenomenal performance increase. This is especially important when you use this plugin on the home page, or near the top of a page. Connecting everytime can make the page take 10+ seconds to load.

    • admin says:

      Yes, this is a problem. The number of users on chaturbate.com has grown and the xml file with info about online users is now about 1.2 – 1.5MB and downloading this file every time can be slow. And also there have been problems lately with chaturbate.com. Sometimes it was really slow and sometimes it gave some errors. But it seems to be better now.

      Good solution would be, if chaturbate offered a better way to query the online users. So we wouldn’t have to download the full xml file every time.

      But right now, the only way to make the plugin faster, is to cache the xml file (although I don’t like this solution very much, because the list of online users changes very fast).

      So I made a new version of the plugin. It uses WP cron to download the xml in background and cache it. See on top of this page and download the version 2.0.0. You can change the cache time from WP Chaturbate settings (from 10s to 1h). By default it’s 5min.

      Please test it. And I would be happy if you give me feedback and tell me if it’s working for you.

  • Coporning says:

    Man your plugin is amazing.

    I have a suggestion for the next version, the possibility of creating a grid with hand picked channels.

    This way I can choose specific perfomers and put them in a page just like anyone can do now with the embbeding codes, but with the differnce that this way it will show those fine thumbnails.

  • John says:

    How can I use my own WL instead chaturbate.com?

  • Venice says:

    Is there a way to show a specific cam rather than random? I’d like a widget that shows when I am online LIVE (with picture) but it only shows random.

    Is there a way to do this?



  • mark says:

    Hi plugin stops working after some time

  • mark says:

    Fatal error
    I had to turn off xml cache is not resolved it … after a few minutes it reports an error and then it works again ….
    Warning: SimpleXMLElement::__construct() [simplexmlelement.–construct]: /var/www/BBBB//wp-content/plugins/wp-chaturbate/chaturbatecams.xml:48: parser error : Opening and ending tag mismatch: locationame line 48 and display_name in /var/www/BBBB/wp-content/plugins/wp-chaturbate/wp-chaturbate.php on line 436

  • juan says:

    In this code in the page, comes the latest big camera, and also the other elongated, any way to fix it?

  • juan says:

    in wpchaturbatecams (“x”, #) I meant

  • Tim says:

    Is there any way to make it so the most popular room doesn’t open on every page?

    I have it set to open the most popular room on the page itself, then set wpchaturbatecams (“x”, #) in my contentpage.php. So it shows Popular Room, then x amount of rooms underneath.

    But when people click a cam, it seems like it ‘recreates’ the same page, which displays the Popular Room, then the room the user clicked on under it, while not showing the wpchaturbatecams (“x”, #) part.

    I’m stumped lol I’ve looked through all of the files, and can’t figure out what to change honestly.

    Any help is much appreciated. Thanks!

      • admin says:

        I don’t really understand, what you want. You just want it not to show the thumbnail of the first cam on the list of cams?

        In this case you can replace this line:
        foreach($onlinecams as $cam) {
        in function get_online_cams with something like this:
        $i = 0;
        foreach($onlinecams as $cam) {
        if ($i < 2) continue;

        Now it just skips the first (most popular) cam.

  • Leon says:

    Hi there,

    Is it possible to specify a single room instead of showing all rooms using ??

  • zerros24 says:

    how do I get with htaccess from /?page=2 -> /page/2/ back?

  • funnytimecpl says:

    it is possible with htaccess to do pretty links ?


  • funnytimecpl says:

    hey , can i get answer to prior question ?

    “it is possible with htaccess to do pretty links ?
    website.com/birdylovesit “

  • GoCastaway says:

    Today Chaturbate had an update, now my site is very slow loading….

  • mk says:

    How to add custom css to pagination?

    • admin says:

      You can’t until version 3.0.0. Because there was no classes or id’s set for the pagination links. But you can do it with the new version (since 3.1.0). See top of this page for download link. The class for the whole pagination is “chaturbate_pager”, class for the page number is “chaturbate_pager_item” and class for the current page number is “chaturbate_pager_item_current”. So now you can use these classes to add css to the pagination. You can add the custom css in Settings -> WP Chaturbate (since 3.0.0).

  • billie says:

    how can i get this plugin to work with the chaturbate white label site i have setup? all links open the default Chaturbate site to signup etc.

    • admin says:

      You would have to manually change the php code of the plugin.

      If you want the user’s chaturbate profile link to point to your whitelabel, change the links like that http://chaturbate.com/affiliates/in/“.$program_code[$program][“link”].”/$affid/?track=$track&room=$username to http://your_white_label_address/$username/

      You can’t change the sign up link inside the embedded chatroom to point to your whitelabel. But you can just add your sign up link somewhere else.

      Other people have also asked this, so maybe in the next release I will add the feature that you can configure the plugin to use your white label.

  • wp says:

    i want to show cams from a certain ethnic or country.
    is there a keyword or country/region option?

    • admin says:

      There is no such feature in my plugin. But if you can write php, you can change the code manually to do it. There is “Location” in the chaturbate xml file, so you could filter by it.

      • Peter says:

        a filter for location/ country would be awesome… would be really cool if you could add this in your next version. Do u think its possible?


  • DavidD says:

    Does anyone know how to force sound to be enabled?

    They muted all of the feeds many months ago :(

  • GoCastaway says:


    If you click on a cam then you get the popup with big can and chat.
    Is it possible that you then only get a popup with the chaturbate login?


  • funnytimecpl says:

    just wondering it’s there a way to get the fields on from the xml?


    you get the point …

    and other question ,can you give some example on how to use custom css ?

    • admin says:

      Sorry I have been so busy and didn’t have time to answer.

      Yes it is possible to get these fields from xml. But my plugin doesn’t use them currently. If you can write php yourself, you can make it to show these field. You can use them in function get_online_cams like this: $cam->name_of_the_field. For example, if you want to show age instead of number of viewers, you can replace this:
      Viewers: '.$viewers.'
      with this:
      Age: '.$cam->age.'

      To use custom css, you need to put your css code to Settings -> Wp Chaturbate -> Custom CSS. You can use any css there. Fore example if you want to change the background of the webcam info to black, you can use this code:
      body div.chaturbatecamitem {
      background: #000000;

  • funnytimecpl says:

    “you get the point … ”

    So you didn’t got the point.
    i was rude , know you dont have time , but maybe you help other not just me :)

  • John says:


    Firs at all want to thank you for all the great job you have dont with this script.

    I have a little problem though.

    Im getting the following errors. and they happen under this situation.

    I open the site with cleared cache, and it loads alright (then i close website)
    after some time (I’m not sure exactly how much, let’s say 30 minutes) I open the browser, get in the site and these errors appear (and the plugin doesnt load)

    After refreshing, it works alright again so maybe it has to do with cache.
    (im a a very newbie with php, coding etc)

    Warning: SimpleXMLElement::__construct(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/********/public_html/wp-content/plugins/wp-chaturbate/wp-chaturbate.php on line 637

    Warning: SimpleXMLElement::__construct(http://chaturbate.com/affiliates/api/onlinerooms/?format=xml&wm=*****): failed to open stream: no suitable wrapper could be found in /home/********/public_html/wp-content/plugins/wp-chaturbate/wp-chaturbate.php on line 637
    Error getting data from chaturbate. Try again later.

    what should I do about this?
    hope you can help me

    • admin says:

      To: John


      It works when it uses the cached xml. But if the cached version is expired then it tries to get the xml directly. But your server configuration doesn’t allow to get xml file over http with SimpleXMLElement, so it fails. You can ask your hosting provider if they can change this setting.

      The plugin uses WP cron to update the xml regurarly so the cache should be fresh all the time and it shouldn’t need to get the xml directly. But it only updates it if someone visits your website. If you don’t have visitors on your site all the time then the cache will expire. You can set up a cron job so WP cron can run regurarly. For example:
      */5 * * * wget -q -O – http://yourdomain.com/wp-cron.php?doing_wp_cron
      Then the cron job will access your site every 5 minutes and WP cron can run if necessary.

      Or if you can’t or don’t want to do it, then try this version of the plugin – http://sexplugins.com/wp-content/uploads/wp-chaturbate-3.1.1.zip
      This version doesn’t access the xml over http with SimpleXMLElement when the cache is expired. Instead it downloads it first and then reads the xml with SimpleXMLElement.

  • Andrew says:

    Amazing work with this plugin guy, i have seen that not work with new wordpress update 4.3.1, is possible fix it? Plugin settings works but not appear nothing..

  • James says:

    I’ve got the plugin working fine, great work. I have zero set as max webcams but paging doesn’t show up, instead its just a long page of the cams. Any advice?


    • admin says:

      That’s how it should be. On the settings page, under the max cams field, it says: “Enter 0 to show all cams”. So if you set max cams to zero, it shows all cams. If you want paging, you have to set how many cams you want to show on one page. For example enter 30 in the max cams field. And also set “Display pager?” -> “Yes”

Leave a Reply

Your email address will not be published. Required fields are marked *

Powered by Wordpress. Design: Supermodne.