Pagination not working with offset
-
Hi, my index page is:
<?php get_header(); ?> </style> <div id="primary" class="content-areas"> <main id="main" class="site-main" role="main"> <?php query_posts('offset=4'); ?> <?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php do_action('protopress_blog_layout'); ?> <?php endwhile; ?> <?php protopress_pagination(); ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>It showing the pages links, but when I click on the Page 2 button it still shows me the first page content.
why?
The topic ‘Pagination not working with offset’ is closed to new replies.