Support » Fixing WordPress » WP PageNavi

  • Resolved tachb


    Hi, I am trying to figure out how to get this plugin to work. I know nothing about code and can’t figure out which code to replace with the plugin code. I am using blue lucas theme.

    Here is what my navigation code looks like I have tried deleting different parts and none worked.


    <?php endwhile; else: ?>

    <p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p><?php endif; ?>
    <p><?php posts_nav_link(‘ — ‘, __(‘« Previous Page’), __(‘Next Page »’)); ?></p>

    Also not sure if I should put it in index, header or both?
    Not sure what I am doing wrong any help is appreciated. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • It needs to be used in each Page Template…(which works quite well in Child Theme) These typically include Archive.php, Category.php….more…

    This is well documented at the plugin Author’s site.



    Forum Moderator

    try and change what you posted to:

    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
    <p><?php if( function_exists('wp_pagenavi') ) { wp_pagenavi(); }  else { posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); } ?></p>

    Worked perfectly. Thanks so much! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP PageNavi’ is closed to new replies.