@binarywc
Actually i am very new to wordpress and still figuring out how it works. Below is the template for the blog page. As per my understanding The pagination is already there. But I don’t see the reflection in the page.
<?php
/*
Template Name: blog
*/
get_header();
// Set up the paged variable
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=8'.'&paged='.$paged);
?>
<?php
?>
<section id="page-blog" class="container">
<?php the_content();?>
<div class="row">
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<div class="col-sm-4 col-md-3 block-news">
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
<div id="post-<?php echo $post->ID; ?>" <?php post_class(); ?>>
<div class="image-news-home" style="background-image:url(<?php echo $image[0];?>);"></div>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="post-excerpt">
<?php the_excerpt(); ?>
<a class="more-link" href="<?php the_permalink(); ?>">Read the full story <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span></a>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<?php
if ( function_exists('wp_bootstrap_pagination') )
wp_bootstrap_pagination();
?>
</section>
<?php
// Make sure the default query stays intact
wp_reset_query();
get_footer();
?>