Support » Themes and Templates » paginate_links Seperator showing last, how do i fix this?

  • Resolved sosukeinu

    (@sosukeinu)


    I’m using paginate_links using this code

    <?php
    global $wp_query;
    
    $big = 999999999; // need an unlikely integer
    
    echo paginate_links( array(
    	'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ),
    	'format' => '?paged=%#%',
    	'current' => max( 1, get_query_var('paged') ),
            'prev_text'    => __('&laquo; Previous'),
            'next_text'    => __('Next &raquo;'),
    	'total' => $wp_query->max_num_pages
    
    ) );
    ?>

    and it’s showing up like:
    « Previous 1 2 3 4 5 6 9 Next » …
    with the separator dots outside of the nav
    any ideas on what could be happening?
    thank you.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘paginate_links Seperator showing last, how do i fix this?’ is closed to new replies.