Adding pagination to my theme [closed]

$supernews_cat_post_args = array(
                'posts_per_page'      => $supernews_number,
                'no_found_rows'       => true,
                'post_status'         => 'publish',
                'ignore_sticky_posts' => true
            );

This is the code where you should add the pagination.

Changing it to:

$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$supernews_cat_post_args = array(
                    'posts_per_page'      => $supernews_number,
                    'no_found_rows'       => true,
                    'post_status'         => 'publish',
                    'ignore_sticky_posts' => true, 
                    'paged' => $paged,
                );

May be the key.
First we ask wordpress if it received a query variable to display a page with the first line. If not then the $paged will be 1.
Then we add that to the arguments where the posts are displayed.

tech