title: How to make wordpress adrotate plugin rotate ads on the page?
body: <p>I have adrotate plugin in my Wordpress site, I paid for Pro version but it does not do what it's supposed to do. I figured I could do this myself by grouping ads and hiding some.</p>
  
  <p>This is the kind of HTML it outputs for two adverts</p>
  
  <pre><code>&lt;div class="g g-16"&gt;
      &lt;div class="g-col b-16 a-20"&gt;
          &lt;a data-track="MjAsMTYsMCwx" class="gofollow" href="https://google.com/"&gt;&lt;img src="theimage.jpg" alt="Advert" data-recalc-dims="1" /&gt;&lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="g g-16"&gt;
      &lt;div class="g-col b-16 a-24"&gt;
          &lt;a data-track="MjAsMTYsMCwx" class="gofollow" href="https://google.com/"&gt;&lt;img src="theimage.jpg" alt="Advert" data-recalc-dims="1" /&gt;&lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But the class name is g which I don't think is specific enough, and might upset something else.</p>
  
  <p>This is the code I tried</p>
  
  <pre><code>setInterval(function(){
      $('.g').first().hide().next().show();
  }, 6000); // every 6 seconds
  </code></pre>