WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
my code is this (1 post)

  1. wpwp14
    Member
    Posted 9 months ago #

    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(); ?>

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.