How to add numbers pagination to this blog page?
First of all you need to get the paged query variable and pass it to your main query args: //Protect against arbitrary paged values $paged = ( get_query_var( ‘paged’ ) ) ? absint( get_query_var( ‘paged’ ) ) : 1; $args = array( ‘post_type’ => ‘post’ ‘paged’ => $paged, ); Then you have to add the … Read more