Getting Bootstrap Carousel to set Active class?
Looks like a bug occurs on this line for the 2nd Carousel where $key never equals $first_key – No Sssweat

That's exactly the answer!
  &lt;!-- Carousel items --&gt;
  &lt;div class=&quot;carousel-inner&quot; role=&quot;listbox&quot;&gt;
    &lt;?php foreach ($rows as $key =&gt; $row): ?&gt;
      &lt;div class=&quot;item &lt;?php if ($key == $first_key) {print 'active';
     } ?&gt;&quot;&gt;
        &lt;?php print $row ?&gt;
      &lt;/div&gt;
    &lt;?php endforeach ?&gt;
  &lt;/div&gt;

Whoever set up the site or theme commented out the part about printing &quot;active&quot; in the  class list.  Probably so it wouldn't auto-rotate, but unfortunately it also made it become hidden when the screen is made narrow.