My next page doesn't work
-
My paginations seems recognize just the first page.
In simple terms, it doesn’t go over when I click next in a page different from the first.
Can someone help me?This is my code:
<?php /** * Template Name: Properties Grid */ ?> <?php get_header(); ?> <div class="row"> <div class="content <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-sm-8 col-md-9<?php else : ?>col-sm-12<?php endif; ?>"> <?php dynamic_sidebar( 'sidebar-content-top' ); ?> <?php if ( have_posts() ) : the_post(); ?> <h1 class="page-header"><?php the_title(); ?></h1> <?php the_content(); ?> <?php query_posts( array( 'post_type' => 'property', 'post_status' => 'publish', 'posts_per_page' => 6, 'paged' => get_query_var( 'page' ) ? get_query_var( 'page' ) : 1, ) ); ?> <div class="row"> <?php while ( have_posts() ) : the_post(); ?> <div class="col-sm-6 col-md-4"> <?php get_template_part( 'templates/properties/box-simple' ); ?> </div> <?php endwhile; ?> <?php aviators_pagination() ?> </div><!-- /.row --> <?php //Reset Query wp_reset_query(); ?> <?php else : ?> <?php get_template_part( 'templates/content-not-found' ); ?> <?php endif; ?> <?php dynamic_sidebar( 'sidebar-content-bottom' ); ?> </div><!-- /.content --> <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> <div class="sidebar col-sm-4 col-md-3 col-sm-pull-8 col-md-pull-9"> <?php dynamic_sidebar( 'sidebar-1' ); ?> </div><!-- /.sidebar --> <?php endif; ?> </div><!-- /.row --> <?php get_footer(); ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘My next page doesn't work’ is closed to new replies.