• currently my page has 10 posts at most. At the bottom of page it uses “older posts” link to access the previous pages.

    how do i make it show the page count, like: 1,2,3,4,5….last.
    so I can simply jump to any page by clicking page number?

    thx

Viewing 3 replies - 1 through 3 (of 3 total)
  • http://codex.wordpress.org/Function_Reference/paginate_links

    WordPress allows you to do this with no fancy code

    Thread Starter techill

    (@techill)

    I find that file and try to modify some parameters, but nothing happened.

    Thread Starter techill

    (@techill)

    I solved by myself.

    Install OB Page Numbers plugin.
    and modify functions.php:
    <div class=”nav-previous”><?php next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older posts’, ‘twentyeleven’ ) ); ?></div>
    <div class=”nav-next”><?php previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>→</span>’, ‘twentyeleven’ ) ); ?></div>

    replace with: <?php if(function_exists(‘ob_page_numbers’)) { ob_page_numbers(); } ?>

    It works but way too ugly. And it’s white color that does not match my background color. Have to drop it anyway 🙁

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘how to make a page count?’ is closed to new replies.