title: posts pagination in wordpress
body: <p>i want to show 4 posts in page and after 4 posts it will show next button to read next posts.</p>
  
  <p></p>
  
  <pre><code>        &lt;?php while (have_posts()) : the_post(); ?&gt;
  
  
  &lt;?php
              global $post;
              $myposts = get_posts('numberposts=4&amp;order=ASC&amp;category=3');
              foreach($myposts as $post) :
              setup_postdata($post);
  
              ?&gt;
  </code></pre>
  
  <p>here is content with html</p>
  
   <p></p>
  
  <pre><code>        &lt;?php endforeach; ?&gt;
  
  
          &lt;?php endwhile; ?&gt;
  
      &lt;?php endif; ?&gt;
  </code></pre>