page navigation doesn’t work
-
When I click on the page 2 in navigation it change the link in command line (https://www.thinqbali.com/bali-blog/page/2/) but doesn’t show new posts, leave me with the same from the page 1.
page for exam – https://www.thinqbali.com/bali-blog/
– code for this page below:<?php
/*
Template Name: Posts Theme
*/
?>
<?php get_header(); ?><?php {
query_posts(‘showposts=25&paged=’.$page.’&posts_per_page=25′);
};?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”posts”>
<h2>” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
</div>
<div class=”posts-speech”></div>
<?php endwhile; ?><?php else : ?>
<?php include (TEMPLATEPATH . ‘/404.php’); ?>
<?php endif; ?>
<?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?>
<?php get_sidebar(”); ?>
<?php get_footer(); ?>
- The topic ‘page navigation doesn’t work’ is closed to new replies.