Como adicionar Paginação ao loop foreach para a página

Eu crio uma página no wordpress series.php e aqui é o código onde eu bloqueio!

   $cat->cat_ID) ); foreach ($categories as $c) { // what you really want instead of var_dump is something to // to create markup-- list items maybe, For example $idp = $c->term_taxonomy_id; //then i get the data from the database $cat_data = get_option("category_".$idp); ?> 
<a href="https://wordpress.stackexchange.com//questions/241244/how-to-add-pagination-to-foreach-loop-to-page/" class="wb-image"><img src="https://wordpress.stackexchange.com//questions/241244/how-to-add-pagination-to-foreach-loop-to-page/">

<a href="https://wordpress.stackexchange.com//questions/241244/how-to-add-pagination-to-foreach-loop-to-page/">name; ?>

Genres :
Country :
Language :
Year :
Latest Episode:
have_posts()) : $catquery->the_post(); ?> <a href="https://wordpress.stackexchange.com//questions/241244/how-to-add-pagination-to-foreach-loop-to-page/" class="latest-ep">

Então, como adicionar paginação for loop para mostrá-lo?

Solutions Collecting From Web of "Como adicionar Paginação ao loop foreach para a página"