• Hi,

    I want to implement pagination(above and below posts/pages) in posts/pages in the theme Twenty Eleven 1.2.
    Please suggest some plugin how it can be implemented.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mntravelog

    (@mntravelog)

    I have installed one plugin : WP-Paginate

    In the installation steps it says for function previous_posts_link() and next_posts_link() need to be changed in files index.php, archive.php and search.php.

    But not able to find the function.

    Any help…

    This is how I do it for wp-pagenavi, it may help as a guide, I have not used WP Paginate.

    In twenty eleven we have new functions instead of next_posts_link():

    <?php twentyeleven_content_nav( 'nav-above' ); ?>
    <?php twentyeleven_content_nav( 'nav-below' ); ?>

    This is how I use it here building the existing lines into the code.

    <?php if(function_exists('wp_pagenavi') ) : ?>
    	<?php wp_pagenavi(); ?>
    <?php else: ?>
    	<?php twentyeleven_content_nav( 'nav-above' ); ?>
    <?php endif; ?>

    HTH

    David

    This one will comeback a few times, I raised a new ticked with Trac asking the devs to make the function pluggable in a future twenty eleven release.

    I also created a post and tested a child theme with the wp-pagenavi code added.

    Also uploaded a sample index.php to pastebin.

    HTH

    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Paginate post in Twenty Eleven 1.2’ is closed to new replies.