Im trying to have 5 posts for page in my blog. This is what Ive used in index.php
<?php
get_header();
query_posts('posts_per_page=5');
// The Loop
if (have_posts()){
while (have_posts()){
//Iterate the cursor on the next post
the_post();
echo "<a class='more-link' href='";
the_permalink();
echo "'><h1>";
the_title();
echo "</h1></a>";
echo "<div class='meta'>";
the_date();
echo " | ";
comments_number();
echo "</div>";
echo "<a class='more-link' href='";
the_permalink();
echo "'>";
the_post_thumbnail();
echo "</a>";
the_excerpt();
echo "<a class='more-link' href='";
the_permalink();
echo "'>Continue reading</a>";
echo "<hr>";
}
}
get_footer();
?>
I want to put a link at the bottom for "show older posts", but I dont know how should I alter the file to do this. Any idea, please? Thank you