Md Mehedi Hasan

get_the_posts_pagination |or| the_posts_pagination

<div class="container post-pagination">
    <div class="row">
        <div class="col-md-4"></div>
        <div class="col-md-8">
            <?php
            echo get_the_posts_pagination(array(
                "screen_reader_text" => ' ',
                "prev_text" => "New Posts",
                "next_text" => "Old Posts"
            ));
            ?>
        </div>
    </div>
</div>
<div class="container post-pagination">
    <div class="row">
        <div class="col-md-4"></div>
        <div class="col-md-8">
            <?php
            the_posts_pagination(array(
                "screen_reader_text" => ' ',
                "prev_text" => "New Posts",
                "next_text" => "Old Posts"
            ));
            ?>
        </div>
    </div>
</div>

https://codex.wordpress.org/Function_Reference/get_the_posts_pagination