title: Wordpress custom loop pagination
body: <p>I coded custom loop within <a href="https://stackoverflow.com/questions/34691210/wordpress-multiple-loops-and-general-loop/">multiple loops structure</a>:</p>
  
  <pre><code>$q = get_posts( $args );
  // Run your loop
  echo '&lt;div class="row"&gt;';
  $i = 0; 
  foreach ( $q as $post ) : setup_postdata( $post );
    $i++; 
    if ($i%4==0)
      echo '&lt;/div&gt;&lt;div class="row"&gt;';
    get_template_part('loop');
  endforeach;
  wp_bs_pagination();
  wp_reset_postdata();
  </code></pre>
  
  <p>except for I added <code>wp_bs_pagination();</code> to load pagination. It only repeat the same set of posts o every page. Any suggestions?</p>