Previous and older set of posts links
I can't seem to display previous and older set of posts links. This is the page I am working on. I need a link to older and newer posts at the bottom of page.
The template code is like this:
?php /*
Template Name: artikkelit
*/ ?
?php get_header(); ?
div id="primary" class="content-area"
main id="main" class="site-main" role="main"
?php $the_query = new WP_Query( 'showposts=5' ); ?
?php while ($the_query - have_posts()) : $the_query - the_post(); ?
h3a href="?php the_permalink() ?"?php the_title(); ?/a/h3
div class="postPic" ?php the_post_thumbnail(); ?/div
?php the_excerpt(); ?
?php endwhile;?
/main!-- #main --
/div!-- #primary --
?php get_sidebar(); ?
Any suggestions on solving this?