• Resolved malefactor

    (@malefactor)


    How can I disable wp_pagenavi function from some page, (front page) in my case?
    I’ve tried something like that:

    <?php
    if ($_SERVER['PHP_SELF'] == '/index.php') {
    }
    else {
    wp_pagenavi();
    } ?>

    but whiteout success. This code disable pagenavi from all page.

Viewing 1 replies (of 1 total)
  • Thread Starter malefactor

    (@malefactor)

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

    <?php
    $delnavi="http://" . $_SERVER['HTTP_HOST']  . $_SERVER['REQUEST_URI'];
    if ($delnavi=="http://your_web_site_here.com/") {
    }
    else {
    wp_pagenavi();
    } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-PageNavi] How to disable pagenavi from some page?’ is closed to new replies.