Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Rodrigo8

    (@rodrigo8)

    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(); ?>
    Thread Starter Rodrigo8

    (@rodrigo8)

    UPDATE:
    Pagination was working in the front-end now it is not, just as the back-end situation.

Viewing 2 replies - 1 through 2 (of 2 total)