WordPress.org

Ready to get started?Download WordPress

Forums

Page-Nav Plugin Not Working (12 posts)

  1. chengdu living
    Member
    Posted 4 years ago #

    It's activated, just not showing?

    I've disabled all plugins so I don't think it's a conflict.

    Check it out: http://www.19thstep.com

    Thanks

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Have you checked that the plugin is compatible with 2.9.1?

  3. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    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 } ?>
  4. chengdu living
    Member
    Posted 4 years ago #

    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

  5. nacv
    Member
    Posted 4 years ago #

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

  6. chengdu living
    Member
    Posted 4 years ago #

    Still no luck with the Page-nav plugin!

  7. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    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> -->
  8. Len
    Member
    Posted 4 years ago #

    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.

  9. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    @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; ?>
  10. chengdu living
    Member
    Posted 4 years ago #

    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!

  11. akis
    Member
    Posted 4 years ago #

    <?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(); ?>
  12. chengdu living
    Member
    Posted 4 years ago #

    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!!

Topic Closed

This topic has been closed to new replies.

About this Topic