title: Output gallery shortcode as bootstrap columns in Wordpress
body: <p>How do I change the output of gallery shortcode? In post we get:</p>
  
  <pre><code>[gallery ids="134,127,109"]
  </code></pre>
  
  <p>And I need something like:</p>
  
  <pre><code>&lt;div class="row gallery"&gt;
      &lt;div class="col-md-3"&gt;
          &lt;a href="photo.jpg" data-gallery="gallery"&gt;
              &lt;img src="photo.jpg" class="img-responsive" /&gt;
          &lt;/a&gt;
      &lt;/div&gt;
      . . . 
  &lt;/div&gt;
  </code></pre>
  
  <p>This has to work within the_content() so the gallery filter function has to be replaced. Found some topics about it but all are way old so the functions changed. Also it will be good if the function will respect the count of columns selected in gallery and change it to bootstrap classes.
  Can someone help me with that?</p>