[Plugin: WP-PageNavi] PageNavi doesn't work at home page !!!
-
Dear PageNavi developer,
I think this plugin has still a problem. It can’t paginate at home page.
This is my home page: https://newreleasemovies.co/
It still show the pagination, but when clicking in any page, it show the 404 error. For example: https://newreleasemovies.co/page/2/Here is my code in the home.php file:
<?php get_header(); ?> <div class="movies-slider"> <ul id="mycarousel" class="jcarousel-skin-tango"> <!-- The content will be dynamically loaded in here --> </ul> </div> <div id="movies"> <section> <header> <h2 class="page-title"> <?php _e( 'New Release', 'bqhmovies' ); ?> </h2> </header> <?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; $wp_query = new WP_Query(array('post_type' => 'movies', 'posts_per_page' => '5', 'paged' => $paged) ); while ($wp_query->have_posts()) : $wp_query->the_post(); get_template_part( 'content', 'listmovie' ); endwhile; // Reset Query wp_pagenavi( array( 'query' => $wp_query )); wp_reset_postdata(); ?> </section> </div><!--/#movies--> <?php get_sidebar("movies"); ?> <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: WP-PageNavi] PageNavi doesn't work at home page !!!’ is closed to new replies.