I have tried to add pagination in the below code but dont know how to integrate with it. Kindly help to get the paginations on the posts.
<?php
$child_query = new WP_Query(array('post_type' => 'blogpost', 'orderby' => 'date', 'order' => 'DESC'));
while ( $child_query->have_posts() ) : $child_query->the_post(); ?>
<div class="single-post">
<div class="leftContent">
<?php
$image = get_the_post_thumbnail($post->ID,array(300,180));
if($image == ''){
$image = wp_get_attachment_image(11270,array(300,180));
}
?>
<a class="title" href="<?php the_permalink()?>"><?php echo $image; ?></a>
</div>
<div class="rightContent">
<a class="title" href="<?php the_permalink()?>"><?php the_title()?></a><br>
<div class="post-date"><?php the_time('F jS, Y') ?> by <?php echo get_the_author() ?></div>
<div class="content">
<?php echo excerpt($post->ID,320); ?>
</div>
<a href="<?php the_permalink()?>" class="readMore" >Read More</a>
</div>
</div>
<?php
endwhile;
?>