Wordpress paginate_links without showing total posts?

admin

Administrator
Staff member
I've got two loops on my front page that are both using pagination - I've managed to find code to get this to work, pasted below. Is it possible to have paginate_links not show my total number of posts? Currently it looks like: <strong>1, 2, 3...526. Next</strong>. I'd prefer: <strong>1, 2, 3... Next</strong>.

Current code:


Code:
            // Courtesy of Boone Gorges

            $paged1 = isset( $_GET['paged1'] ) ? (int) $_GET['paged1'] : 1;
            $paged2 = isset( $_GET['paged2'] ) ? (int) $_GET['paged2'] : 1;

            // Custom Loop with Pagination 1
            // http://codex.wordpress.org/Class_Reference/WP_Query#Usage
            $args1 = array(
                'paged'          =&gt; $paged1, // http://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters
                'posts_per_page' =&gt; 1,
                'category_name'  =&gt; 'wod'
            );
            $query1 = new WP_Query( $args1 );

            while ( $query1-&gt;have_posts() ) : $query1-&gt;the_post();
                echo '&lt;h4&gt;';
                the_date();
                echo '&lt;/h4&gt;';
                the_content();
                echo '&lt;hr&gt;';
            endwhile;

            // http://codex.wordpress.org/Function_Reference/paginate_links
            $pag_args1 = array(
                'format'   =&gt; '?paged1=%#%',
                'current'  =&gt; $paged1,
                'total'    =&gt; $query1-&gt;max_num_pages,
        'show_all' =&gt; False,
                'add_args' =&gt; array( 'paged2' =&gt; $paged2 ),
        'prev_text' =&gt; 'Next',  
            'next_text' =&gt; 'Prev'
            );
            echo paginate_links( $pag_args1 );
        ?&gt;