title: Wordpress custom post type pagination shows same content on each page
body: <p>I have a custom post type name portfolio.
  I have applied pagination successfully but content on each page is the same.
  Below is my code.
  I have tried too many solutions but unable to find appropriate answer.
  please help</p>
  
  <pre><code>&lt;?php
  $exec_query = new WP_Query( array (
  'posts_per_page'=&gt;10,
  'post_type' =&gt; 'portfolio',
  'job_role'  =&gt; 'executive',
  'post-thumbnails' =&gt; 'thumbnail',
  'paged' =&gt; get_query_var('paged') ? get_query_var('paged') : 1) );
  
   // The Loop
  
   if ( $exec_query-&gt;have_posts() ) { 
  while ( $exec_query-&gt;have_posts() ): $exec_query-&gt;the_post(); ?&gt;
  
  &lt;div&gt;
  // The content
  &lt;/div&gt;
  
  
  &lt;?php
  
  endwhile; 
  $big = 999999999; // need an unlikely integer
  echo paginate_links( array(
  'base' =&gt; str_replace( $big, '%#%', get_pagenum_link( $big ) ),
  'format' =&gt; '?paged=%#%',
  'current' =&gt; max( 1, get_query_var('paged') ),
  'total' =&gt; $exec_query-&gt;max_num_pages
  ) );
  wp_reset_postdata();
  
  }
  
  ?&gt;
  </code></pre>