WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
WP Page Navi Doesn't work (5 posts)

  1. werm42
    Member
    Posted 2 years ago #

    Only ever shows 1 page when clearly more page are available.
    Wordpress 3.2.1

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

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    probably not the fault of the plugin, but of some custom query in the template, without the 'paged' parameter.

    if the problem is with the front page, have a look into index.php (?)
    otherwise look into archive.php or category.php;

    and please post more details, such as the theme you are using, and a link to your site.

  3. manishduet
    Member
    Posted 2 years ago #

    Hello i am trying to use pagenavi plugin in this site http://www.edwardodaniel.com/ but i install the plugin and there is nothing in the footer. How can i solve it?

  4. jsherk
    Member
    Posted 2 years ago #

  5. wrk
    Member
    Posted 2 years ago #

    Hey,

    I found the solution for this problem:

    instead of using:
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;

    use:

    if ( get_query_var('paged') ) {
    
        $paged = get_query_var('paged');
    
    } elseif ( get_query_var('page') ) {
    
        $paged = get_query_var('page');
    
    } else {
    
        $paged = 1;
    
    }

    or (shortway):

    $paged = ( get_query_var('paged') ) ? get_query_var('paged') :
    	 ( get_query_var('page') ) ? get_query_var('page') : 1;

    source:
    http://themeforest.net/forums/thread/pagination-on-wordpress-static-page-set-to-front-page/28120?page=1

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic