title: WP_Query, custom fields and no pagination
body: <p>I have this code:</p>
  
  <pre><code>&lt;?php $q = new WP_Query(array(
              'post_type' =&gt; 'oferty'
          ));
      ?&gt;
      &lt;?php while ($q -&gt; have_posts()) : $q -&gt; the_post(); ?&gt;
      &lt;!-- .post | id: &lt;? echo $post-&gt;ID; ?&gt; --&gt;
          &lt;article &lt;?php post_class() ?&gt; id="post-&lt;?php the_ID(); ?&gt;"&gt;
              &lt;div class="entry"&gt;
                  &lt;h1&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt;
                  &lt;small&gt;&lt;?php echo get_field('bank'); ?&gt;&lt;/small&gt;
                  &lt;?php the_content(); ?&gt;
              &lt;/div&gt;
              &lt;?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post-&gt;ID), 'thumbnail' ); ?&gt;
              &lt;?php if($thumb) : ?&gt;
              &lt;div class="bankimg" style="background-image: url('&lt;?php echo $thumb[0];?&gt;')"&gt;&lt;/div&gt;
              &lt;?php endif; ?&gt;
              &lt;div class="clear"&gt;&lt;/div&gt;
          &lt;/article&gt;
          &lt;!-- /.post | id: &lt;? echo $post-&gt;ID; ?&gt; --&gt;
      &lt;?php endwhile; wp_reset_query(); ?&gt;
          &lt;?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?&gt;
  </code></pre>
  
  <p>It uses <code>wp_query</code> to list all the posts from post type <code>oferty</code>. I set in WordPress options limit of posts to 2 and it works - but no pagination shows up. I tried WP PageNavi, WP Pagination and normal WordPress' prev/next linsk.</p>