'', 'mid_size' => 2, 'prev_text' => '', 'next_text' => '', 'screen_reader_text' => __( 'Posts navigation','blockstrap' ), 'before_paging' => '', 'after_paging' => '', 'type' => 'array', 'total' => isset( $wp_query->max_num_pages ) ? $wp_query->max_num_pages : 1, 'links' => array() // an array of links if using custom links, this includes the a tag. ); /** * Parse incoming $args into an array and merge it with $defaults */ $args = wp_parse_args( $args, $defaults ); $output = ''; // Don't print empty markup if there's only one page. if ( $args['total'] > 1 ) { // Set up paginated links. $links = !empty( $args['links'] ) ? $args['links'] : paginate_links( $args ); $class = !empty($args['class']) ? $args['class'] : ''; // make the output bootstrap ready $links_html = "