Support » Plugin: WP-PageNavi » Won;t display more than one page

  • I’m struggling with this plugin, I can’t seem to get it to work. The code below should return 23 results but only displays one page on the navigation. I want the page to display 18 events and then offer the user the option for going to page two etc.

    Here is my code.

    global $paged;

    $current_date = date(‘j M Y’);
    $end_date = ’30 sept 2013′;

    $paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1;
    $upcoming = new WP_Query();
    $upcoming->query(array(‘posts_per_page’=>18,’post_type’=> ‘tribe_events’,’eventDisplay’ => ‘upcoming’,’venue’=>$post_id_venue,’eventCat’=>$category,’start_date’=>$date,’paged’ => $paged));
    <p><?php wp_pagenavi(array(‘type’ => ‘multipart’, ‘query’ => $upcoming)); ?><p>
    if ($upcoming->have_posts()) :
    while ($upcoming->have_posts()) :
    ” rel=”bookmark”><?php the_title(); ?>
    <?php endwhile; echo”

    “; ?>
    <p><?php wp_pagenavi(array(‘type’ => ‘multipart’, ‘query’ => $upcoming)); ?></p>

    Any help with this would be hugely appreciated. You can view the site I’m working on here:



Viewing 1 replies (of 1 total)
  • I’m also having an issue with only displaying one page regardless of the amount of posts. It was working so I’m sure an update broke it.

Viewing 1 replies (of 1 total)
  • The topic ‘Won;t display more than one page’ is closed to new replies.