WordPress.org

Support

Support » Plugins and Hacks » WP-PageNavi » [Resolved] stop loading pagination beyond a certain number

[Resolved] stop loading pagination beyond a certain number

  • Hi,

    I am just loving this wonderful plugin. Is there a way to make it stop showing/loading pages beyond a certain number of pages?

    Currently, I have set it 12 pages to show on one of my blogs and I do not wish to load/show other pages like (14,15,16,last..etc) even though there are more than 12 pages.

    any help will be highly appreciative.

    https://wordpress.org/plugins/wp-pagenavi/

Viewing 1 replies (of 1 total)
  • Plugin Author Lester Chan

    @gamerz

    Sorry I am afraid that feature doesn’t exist in the plugin. You can probably do this but it is an ugly hack that you can add to the top of your theme.

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    if($paged > 12 ) {
    die();
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] stop loading pagination beyond a certain number’ is closed to new replies.
Skip to toolbar