WordPress.org

Forums

WP-PageNavi
How to add pagenavi to twenty ten ? (2 posts)

  1. Rohit Tripathi
    Member
    Posted 3 years ago #

    how to add page navi to twentyten wp theme ?

  2. ClaytonJames
    Member
    Posted 3 years ago #

    You can try this... Open loop.php, and on lines 177 - 180, remove only the following;

    <div id="nav-below" class="navigation">
    <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
    <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
    </div>

    Replace it with this: <?php wp_pagenavi(); ?> and save the changes.

    Make a backup of all files first, and you should be working on a child theme, or properly rename your version of TwentyTen, if TwentyTen is your default theme. If not, all your changes will be overwritten on the next upgrade.

    Reference material: http://wordpress.org/extend/plugins/wp-pagenavi/installation/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic