max_num_pages; if ( is_object( $query ) && null != $query ) { $total_pages = $query->max_num_pages; } if ( $total_pages > 1 ) { $url_base = $wp_rewrite->pagination_base; $big = 999999999; // Sets the paginate_links arguments. $arguments = apply_filters( 'odin_pagination_args', array( 'base' => esc_url_raw( str_replace( $big, '%#%', get_pagenum_link( $big, false ) ) ), 'format' => '', 'current' => max( 1, get_query_var( 'paged' ) ), 'total' => $total_pages, 'show_all' => $show, 'end_size' => $end, 'mid_size' => $mid, 'type' => 'list', 'prev_text' => __( '« Previous', 'avalon-b' ), 'next_text' => __( 'Next »', 'avalon-b' ), ) ); $pagination = '