title: Wordpress Pagination on posts page
body: <p>I am really struggling to find out where or how to introduce paginate to my wordpess post page...</p>
  
  <pre><code>&lt;?php
      if (is_tag()) {
          $args = array('tag_id' =&gt; get_queried_object_id());
      } else {
          $args = array('cat' =&gt; get_queried_object_id());
      }
  
      $i=1;
      $latest_blog_posts = new WP_Query( $args  );
  
      if ( $latest_blog_posts-&gt;have_posts() ) : while ( $latest_blog_posts-&gt;have_posts() ) : $latest_blog_posts-&gt;the_post();
  
      foreach((get_the_category()) as $category) {
          $cat_name = $category-&gt;cat_name;
          $cat_link = get_category_link( $category-&gt;term_id );
      }
  
      $src = wp_get_attachment_image_src( get_post_thumbnail_id($post-&gt;ID), array( 2600,1000 ), false, '' );
  ?&gt; 
  
  &lt;div style="height: auto; overflow: auto;"&gt;
      &lt;div style="float: left; margin-right: 15px;"&gt;   
          &lt;div style="background: url(&lt;?php echo $src[0]; ?&gt; ); width: 330px; height: 260px; background-size: cover; background-repeat:no-repeat;"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div style="float: right; width: 600px;"&gt; 
          &lt;h2 style="margin:0; padding: 0;"&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
          &lt;p&gt;&lt;span style="font-weight: 200; color: #aaa;"&gt;| &lt;?php the_time('j F Y'); ?&gt;&lt;/span&gt;&lt;/p&gt;
          &lt;p style="line-height: 160%;"&gt;&lt;?php echo substr(get_the_excerpt(), 0,500); ?&gt; [...]&lt;/p&gt;
  
          &lt;?php echo get_the_tag_list('&lt;p&gt; | ','&amp;nbsp;&amp;nbsp; | ','&lt;/p&gt;'); ?&gt;
          &lt;?php $archive_year = get_the_time('Y'); ?&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;?php if ( has_post_thumbnail() ) : ?&gt;
  &lt;?php else: ?&gt;
  &lt;?php endif; ?&gt;
  &lt;?php $i++; endwhile; endif;    ?&gt; 
  </code></pre>
  
  <p>The file is specifically named category-blog.php</p>
  
  <p>I am not sure where in the script I need to be adding in the pagination, I have tried to understand from where in the codex the examples tie into how I am utilising my content.</p>