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.