title: pagination custom post type with multiple WP_Query loop
body: <p>after adding the function of pagination to <strong>Functions.php</strong> and recall it in <strong>template-product-listing.php</strong>
  there is nothing shown in result.
  I have a big problom with this...</p>
  
  <p>could you find and resolve the problem?</p>
  
  <p>thnx</p>
  
  <pre><code>        &lt;article class="row"&gt;
  
              &lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;
  
              &lt;div id="single-head" class="sixteen columns"&gt;
                  &lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;
                  &lt;?php if (has_excerpt()) { the_excerpt(); } ?&gt;
              &lt;/div&gt;
  
              &lt;div class="row"&gt;
                  &lt;nav id="portfolio-filters" class="sixteen columns"&gt;
                      &lt;a href="#filter" class="active-item" data-filter="*"&gt;&lt;?php _e('Show All', 'ci_theme'); ?&gt;&lt;/a&gt;
                      &lt;?php
                      $args = array(
                          'hide_empty' =&gt; 0
                      );
  
                      $skills = get_terms('product-category', $args);
                      ?&gt;
                      &lt;?php foreach ( $skills as $skill ) : ?&gt;
                          &lt;a href="#filter" data-filter=".&lt;?php echo $skill-&gt;slug; ?&gt;"&gt;&lt;?php echo $skill-&gt;name; ?&gt;&lt;/a&gt;
                      &lt;?php endforeach; ?&gt;
                  &lt;/nav&gt;&lt;!-- /portfolio-filters --&gt;
              &lt;/div&gt;
  
              &lt;div id="portfolio-items" class="row"&gt;
                  &lt;?php $ci_product_query = new WP_Query('post_type=product&amp;posts_per_page=4'); ?&gt;
                  &lt;?php if ( $ci_product_query-&gt; have_posts() ) : while ( $ci_product_query-&gt;have_posts() ) : $ci_product_query-&gt;the_post(); ?&gt;
                  &lt;?php $item_skills = wp_get_object_terms($post-&gt;ID, 'product-category');    ?&gt;
  
                  &lt;article class="&lt;?php ci_e_setting('product_columns'); ?&gt; columns &lt;?php foreach ( $item_skills as $item_skill ) : echo $item_skill-&gt;slug.' '; endforeach; ?&gt; columns portfolio-item"&gt;
  
                      &lt;a href="&lt;?php echo get_permalink(); ?&gt;" title="&lt;?php echo esc_attr(get_the_title()); ?&gt;" class="fb"&gt;
                          &lt;?php the_post_thumbnail('ci_portfolio_slider', array('class'=&gt;'scale-with-grid')); ?&gt;
                      &lt;/a&gt;
                      &lt;div class="portfolio-desc"&gt;
                          &lt;h3&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h3&gt;
                          &lt;p class="desc"&gt;&lt;?php echo mb_substr(get_the_excerpt(), 0, 70); ?&gt;...&lt;/p&gt;
                      &lt;/div&gt;
                  &lt;/article&gt;&lt;!-- /portfolio-item --&gt;
  
                  &lt;?php endwhile; endif; ?&gt;
                  &lt;?php wp_reset_postdata(); ?&gt;
  
              &lt;/div&gt;&lt;!-- /portfolio-items --&gt;
  
              &lt;?php get_template_part('part', 'call_to_action'); ?&gt;
  
              &lt;?php endwhile; endif; ?&gt;
          &lt;div class="pagination"&gt;
          &lt;?php wp_pagination(); ?&gt;
          &lt;/div&gt;
          &lt;/article&gt;
  </code></pre>