WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
Navigation isn't showed anywhere (4 posts)

  1. JavierP3
    Member
    Posted 1 year ago #

    Hey guys, it's been a few days since I've been trying to make this work with no luck.

    I don't know much at all about coding or anything but I thought I could make this work without too much trouble...

    I'm running a site using WP-Bold template, there isn't any option by default (or I don't see it anywhere) to enable posts pagination (newer post, older post...) so I installed this plugin but it is not doing anything at all at my site.

    I found the lines that (I guess) have to be changed in the file named bot-nav.php which looks like this:

    <div class="navigation clearfix">
    <?php if ( is_single() ) { ?>
    	<div class="alignleft single">
    		<?php previous_post_link('&laquo; %link'); ?>
    	</div>
    	<div class="alignright single">
    		<?php next_post_link('%link &raquo;'); ?>
    	</div>
    <?php } else { ?>
    	<?php if ( function_exists('wp_pagenavi') ) { ?>
    		<?php wp_pagenavi(); ?>
    	<?php } else { ?>
    		<?php posts_nav_link(); ?>
    	<?php } ?>
    <?php } ?>
    </div>

    and replaced the 2 divs below <?php if ( is_single() ) { ?> with <?php wp_pagenavi(); ?> but it's still not showing anything on my posts.

    What am I missing? I'm sure it's some kind of stupid fault on my part.

    Thanks in advance.

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. Grant Kimball
    Member
    Posted 1 year ago #

    First off, make a back up (if you'd like) just to make sure you don't harm any template files.

    second, looks like you can just replace everything you have there with this... If you are running the same condition within a condition that doesn't matter, its pointless :)

    <div class="navigation clearfix">
    <?php
    $page_navi = function_exists('wp_pagenavi') ? true : false ;
    ($page_navi) ? wp_pagenavi() : posts_nav_link();?>
    </div>

    This is really based on your template though. But the above code should work fine.

  3. moonshinerMike
    Member
    Posted 1 year ago #

    solution work for me - thx

  4. Chetan Gupta
    Member
    Posted 1 year ago #

    Hey guys
    some body help me.
    I am just intalled this plugin on my website GlobalCraze
    and then i don't find this plugin working. No page numbers are available at bottom of the posts.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic