str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'prev_text' => '«', 'next_text' => '»', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages ) ); if (!empty($paginate_links)) { echo '
'; echo $paginate_links; echo '
'; } } ?> max_num_pages ; $paginate_links = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'prev_text' => '«', 'next_text' => '»', 'current' => max( 1, get_query_var('paged') ), 'total' => $total ) ); if (!empty($paginate_links)) { echo '
'; echo $paginate_links; echo '
'; } } ?> get_post_type( $post->ID ),'paged' => $paged1,'posts_per_page' => get_option('posts_per_page')); $query1 = new WP_Query( $args1 ); $paginate_links = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'prev_text' => '«', 'next_text' => '»', 'current' => $paged1, 'total' => $query1->max_num_pages , ) ); if (!empty($paginate_links)) { echo '
'; echo $paginate_links; echo '
'; } } ?>