title: Wordpress' get_posts and pagination not working
body: <p>I have a code in a page template that looks like this (obviously first I set up IDs of categories):</p>
  
  <pre><code>&lt;?php
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;         
  global $post; 
  $myposts = get_posts("cat=$catIDs&amp;posts_per_page=12&amp;paged=" . $paged);
  ?&gt;
  &lt;div class="column-odd"&gt;
      &lt;?php
          $i=1;
          foreach($myposts as $post) :
              if($i%2 != 0) :
                  setup_postdata($post);
                  //output odd post
              endif;
              $i++;
          endforeach;
      ?&gt;
  &lt;/div&gt;
  &lt;div class="column-even"&gt;
      &lt;?php
          $i=1;
          foreach($myposts as $post) :
              if($i%2 == 0) :
                  setup_postdata($post);
                  //output even post
              endif;
              $i++;
          endforeach;
      ?&gt;
  &lt;/div&gt;
  
  &lt;nav&gt;
      &lt;ul&gt;
          &lt;?php
           if($link = get_previous_posts_link("« Poprzednia strona")) 
                  echo '&lt;li class="prev"&gt;'.$link.'&lt;/li&gt;';
           if($link = get_next_posts_link("Następna strona »")) 
                  echo '&lt;li class="next"&gt;'.$link.'&lt;/li&gt;';
  
          ?&gt;
      &lt;/ul&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>The problem is that <code>get_next_posts_link</code> is not returning anything. How can I make it work?</p>