Custom category pagination Wordpress
<p>I have a custom loop on a custom template page in WordPress that is showing posts from a particular category. This all works great and shows everything I need, however I need to add some pagination eventually. As this is a custom loop it seems that the native WP 'Blog pages show at most' does not work. Is there a way to add pagination to my custom loop?</p>

<pre><code>   &lt;?php
    // add journal posts to the journal page
    query_posts( array ( 'category_name' =&gt; 'journals', 'posts_per_page' =&gt; -1 ) );
    ?&gt;
    &lt;?php
    // The Loop
    while ( have_posts() ) : the_post();
        echo '&lt;div class="journal-posts"&gt;';
        echo '&lt;h2 class="entry-title"&gt;';
        echo '&lt;div&gt;&lt;a href="'. esc_url( get_permalink() ) . '"&gt;' . sprintf(__( get_the_title() )) . '&lt;/a&gt; &lt;img src="http://localhost/website.co.uk/wp-content/themes/themename/images/icons/icon.png" alt="Icon Stuff"/&gt;&lt;/div&gt;';
        echo '&lt;/h2&gt;';
        echo '&lt;span class="entry-meta"&gt;Posted on ';
        echo '&lt;span class="date-link"&gt;';
        the_date();
        echo '&lt;/span&gt;';
        echo ' by ';
        echo '&lt;span class="author vcard"&gt;&lt;a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '"&gt;' . esc_html( get_the_author() ) . '&lt;/a&gt;&lt;/span&gt;';
        echo '&lt;/span&gt;';
        the_content();
        echo '&lt;/div&gt;';
        endwhile; ?&gt;
  &lt;?php
  // Reset Query
  wp_reset_query();
?&gt;
</code></pre>

<p>I have three separate categories being called for this site hence why I need to have this custom loop on each of those pages. Unless there is a better way to do it?</p>

<p>Thanks in advance!</p>