Title: my code is this
Last modified: August 21, 2016

---

# my code is this

 *  [wpwp14](https://wordpress.org/support/users/wordpresswordpress14/)
 * (@wordpresswordpress14)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/my-code-is-this/)
 * hi i want use this plugin , my site show the navigation bar but when i am click
   page 2 but i see the same articles !!
    i read the instruction here but it does
   not help me .
 * my code is this :
    ﻿﻿<?php get_header(); ?> <div class=”center”> <?php include(
   TEMPLATEPATH.”/last-p.php”);?>
 * <?php include(TEMPLATEPATH.”/rside.php”);?>
 * <div class=”main”>
 *  <div class=”post” style=”width:470px; padding:10px; margin-bottom:15px;”>
    <
   div class=”ptitle”><h2>Last news</h2></div> <?php $recent = new WP_Query(“cat
   =2931”); while($recent->have_posts()) : $recent->the_post(); ?> “> <div class
   =”rand-p” style=”width:221px; margin:0 5px;”> <?php the_post_thumbnail(array(
   60,60), array (‘class’ => ‘alignleft’)); ?><?php the_title(); ?><?php if($date_post
   ==$date){echo ‘<font color=”red”> new </font>’;} ?> </div> <?php endwhile; ?>
   <?php query_posts( array( ‘cat’ => 2931, ‘paged’ => get_query_var(‘paged’) ) );?
   > <?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); }?>
 *  </div>
 * </div>
    </div>
 * <?php include(TEMPLATEPATH.”/l-side.php”);?>
    </div> <?php get_footer(); ?>

The topic ‘my code is this’ is closed to new replies.

 * ![](https://ps.w.org/wp-pagenavi/assets/icon.svg?rev=977997)
 * [WP-PageNavi](https://wordpress.org/plugins/wp-pagenavi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pagenavi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pagenavi/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pagenavi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pagenavi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pagenavi/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [wpwp14](https://wordpress.org/support/users/wordpresswordpress14/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/my-code-is-this/)
 * Status: not resolved