Support » Plugin: WP-PageNavi » Pagination broken when using custom permalink for blog category page

  • Paginavi links return 404 when using custom permalink “mysite.com/blog to display blog post archive page, but works when using the default URL such as “mysite.com/category/blog”.
    In my post archive template “single.php” , I have used the typical for loop to render the post contents.
    if ( have_posts() ) {
    while ( have_posts() ) {
    the_post();
    // Post Content here
    }
    }
    wp_pagenavi(); // then called the pagination function

    I have seen this solution below around, but it does not seem to work for me.
    wp_pagenavi( array( ‘query’ => $gb_bundle_qry ) );

    I have not queried any Post data to work with in my archive template as this solution suggest, but rather have used the default loop to render the post content.

    Any help ?

  • The topic ‘Pagination broken when using custom permalink for blog category page’ is closed to new replies.