Create pagination foreach loop

Question

I have this foreach loop on a page how can I create pagination links for posts

  
$args = array(
        'numberposts' => 4,
    );
    $catPosts = get_posts( $args ); 

    foreach( $catPosts as $singlePosts ) {
         echo '$singlePosts->post_title';
    };  
0
, Stymark 1 year 2020-07-14T00:10:28-05:00 0 Answers 63 views 0

Leave an answer

Browse
Browse