Hi Need Help!, WP-PageNavi throws error 404 once i click to the next page, for example im on Page 1 of 10, then when i click to Page 2 and so on, it directs to page 404.
heres my code :
<?php
// The Query
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
$args = array('post_type' => 'presse', 'status' => 'publish', 'paged' => $paged, 'orderby' => 'date');
$the_query = new WP_Query($args);
// The Loop
// wp_reset_query();
if ($the_query->have_posts()):
while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="news-list-wrapper">
<div class="news-list group">
<h2 class="published"><?php the_time('d.m.Y'); ?></h2>
<a href="<?php the_permalink() ?>"><?php the_title('<h1>', '</h1>'); ?></a>
<?php the_excerpt(); ?>
</div>
</div>
<?php endwhile; ?>
<div class="pagination_btn">
<?php
wp_pagenavi(array('query' => $the_query));
wp_reset_postdata();
?>
</div>
<?php else: ?>
<div><p>No Content Available</p></div>
<?php endif; ?>
heres the link : http://connex-wordpress.bea8.de/aktuelles/news/
Hope for you response,
Thanks,