WordPress.org

Support

Support » Plugins and Hacks » disable wp-pagenavi on pages with template using the loop

disable wp-pagenavi on pages with template using the loop

  • How can i disable wp-pagenavi on pages using templates and the wordpress loop? It seems that wp-pagenavi adds itself automatically wherever the
    wordpress loop is used, not counting that it is a page or not.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey buddy, did you figure it out how to disable wp-pagenavi? I am wondering how to as well.
    I’m using loop on my front page (index.php) and don’t need pagenavi there.

    Finally I found solution. Here is the code if you still need it.

    <?php
    $delnavi="http://" . $_SERVER['HTTP_HOST']  . $_SERVER['REQUEST_URI'];
    if ($delnavi=="http://your_web_site_here.com/") {
    }
    else {
    wp_pagenavi();
    } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘disable wp-pagenavi on pages with template using the loop’ is closed to new replies.