[resolved] WP pagenavi not working in Twenty Eleven Theme (3 posts)

  1. jonas12
    Posted 3 years ago #

    I got the WP PageNavi working in Theme Twenty Ten and in the ThemeZee, but I can't find the code in Twenty Eleven.

    In the Main Index file I not sure which code to change;

    <div id="primary">
    <div id="content" role="main">

    <?php if ( have_posts() ) : ?>

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

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( 'content', get_post_format() ); ?>

    <?php endwhile; ?>

    Couldn't find anything in the content.php file.

    I've set posts to show to 3.
    It doesn't say previous or next instead it says older posts and newer posts.

    Any advice appreciated


  2. jonas12
    Posted 3 years ago #

    I missed the answer before on another post:


    the code that you need to change is in the functions.php file.

  3. jonas12
    Posted 3 years ago #

    all good.

    Follow the instructions for twenty ten, the only difference for twenty eleven is the file where the code is kept. which is in the functions.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic