Support » Plugin: WP-PageNavi » [Plugin: WP-PageNavi] wp navi in my schedule

  • Im trying to make a schedule gig with a post, the post is limit to 3..and i have a 10 schedule gig..that why i need wp_navi, but somehow when i clicked the 2nd button, it turn back to my index and the url link is
    I hope this image can help u, because my english is so bad 😛

    and this is my code

      $jadwal = new WP_Query(‘post_status=future&category_name=jadwal&order=DESC&showposts=3’);
      if ($jadwal->have_posts()) {
      while ($jadwal->have_posts()) : $jadwal->the_post(); $do_not_duplicate = $post->ID; ?>

    • <p><?php the_title(); ?></p>
      <p><?php the_time(‘F jS, Y’) ?></p>
      <?php the_content(); ?>
    • <?php endwhile; } ?>
      <?php wp_pagenavi( array( ‘query’ => $jadwal ) ); ?>

    please help me..

Viewing 1 replies (of 1 total)
  • Kakajoe:

    I’m having the same problem. Do not sleep at 3 days, trying to solve it. you got?

    query_posts( array(
      'category' => basename(get_permalink()),
      'post_status' => 'publish,future',
      'paged' => get_query_var('paged')
    ) );
    if(have_posts()): while(have_posts()): the_post();
    <h2><?php the_title(); ?></h2>
    <p><?php the_time('d/m/Y H:i');?></p>
    <hr />
    <?php endwhile; else: endif; ?>

    When doing a query using ‘post_status’ => ‘future’, shows all pages, but only navigates to page 2.

    posts per page

    all posts

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-PageNavi] wp navi in my schedule’ is closed to new replies.