Fixed front-end code., but back-end admin stays with same error. Tried copy and paste to test back-end but always getting first page, although same code in front end does paginate well.
This is the front-end i am talking about:
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
$args = array( 'post_type' => 'post',
'paged' => $paged
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
get_template_part('caratula');
}
wp_reset_postdata();
}
else { ?>
<p>No content</p>
<?php } ?>
<div class="navigation"><?php wp_pagenavi( array( 'query' => $the_query ) ); ?></div><?php wp_reset_query(); ?>