Support » Themes and Templates » Page-Nav Plugin Not Working

Viewing 11 replies - 1 through 11 (of 11 total)
  • esmi

    (@esmi)


    Forum Moderator


    Have you checked that the plugin is compatible with 2.9.1?

    maybe your index.php needs something like:

    <?php if(function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
    	<div class="newer_older">
    <span class="newer">&nbsp;<?php previous_posts_link(__('&laquo; Newer Entries','lightword')) ?></span>
    <span class="older">&nbsp;<?php next_posts_link(__('Older Entries &raquo;','lightword')) ?></span>
    </div>
    <?php } ?>

    The plugin is compatible with 2.9.1

    Thanks for the suggestion alchymyth, I added that code at the bottom of index.php (just before “<?php get_footer(); ?>”) but it didn’t seem to make a change. http://www.19thstep.com

    I get this problem, too.
    Page-Nav Plugin Not Working.
    I hope Author will get this problem down soon.

    Still no luck with the Page-nav plugin!

    adding this:
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>

    just above my current navigation worked for me….
    (I then commented out my existing navigation like so, I didn’t use a conditional cuz this was easier!)

    <!-- <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div> -->
    			<!-- <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div> -->

    I can confirm what RVoodoo said. I just installed both that theme and plugin and it works fine.

    chengdu living, could you post the contents of your theme’s index.php file at the WordPress Pastebin then post the link here.

    If nothing is awry with that file then there has to be a conflict somewhere.

    @chengdu living….I just noticed you said before the get_footer call, that is the wrong place

    needs to go up further. Before any of this you may have:

    <?php else : ?>
    
    		<div class="post">
    			<h1 class="title">Not Found</h1>
    			<p>YOU are looking for something that ISN'T HERE.</p>
    		</div>
    
    	<?php endif; ?>

    Thanks for your help LenK and RVoodoo-

    I put the code you suggested in index.php, after “Not Found” error which you accurately predicted, but still it doesn’t show. I moved it around to a few different positions and nothing ever seemed to change as far as the navigation at the bottom of the page.

    I don’t understand where the problem is – here’s the bottom part of my index.php which I edited and am using currently:

    <?php comments_template(); ?>
    
    <?php endwhile; else: ?>
    
    <h2><?php _e('Not Found','lightword'); ?></h2>
    <p><?php  _e("Sorry, but you are looking for something that isn't here.","lightword"); ?></p>
    
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    
    <?php endif; ?>
    
    <div class="newer_older">
    <span class="newer">&nbsp;<?php previous_posts_link(__('&laquo; Newer Entries','lightword')) ?></span>
    <span class="older">&nbsp;<?php next_posts_link(__('Older Entries &raquo;','lightword')) ?></span>
    </div>
    
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    And my site is http://www.19thstep.com

    The page-nav plugin is enabled!

    Thanks again, I appreciate it!

    <?php comments_template(); ?>
    
    <?php endwhile; else: ?>
    
    <h2><?php _e('Not Found','lightword'); ?></h2>
    <p><?php  _e("Sorry, but you are looking for something that isn't here.","lightword"); ?></p>
    
    <?php endif; ?>
    <!--
    <div class="newer_older">
    <span class="newer">&nbsp;<?php previous_posts_link(__('&laquo; Newer Entries','lightword')) ?></span>
    <span class="older">&nbsp;<?php next_posts_link(__('Older Entries &raquo;','lightword')) ?></span>
    </div>
    -->
    
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thank you akis! Page-Nav finally emerges!

    Is there a simple way to center the page-nav and make it all one color? Thanks again!!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Page-Nav Plugin Not Working’ is closed to new replies.