WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
conflict with 'post_status' => 'future'. (3 posts)

  1. faspada
    Member
    Posted 1 year ago #

    Dear ...
    My English is not good so I turn to translate.google.com.br
    I have a problem and I can not solve.

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

    <?php $my_query = new WP_query( array('category_name' => 'fotos', 'paged' => get_query_var('paged'), 'post_status' => array( 'publish','future' ) ) );?>
    				<?php if($my_query->have_posts()): while($my_query->have_posts()): $my_query->the_post();?>
    
    				<h2><?php the_title(); ?></h2>
                    <p><?php the_time('d/m/Y');?></p>
    				<hr />
    				<?php endwhile; else: endif; ?>
    
                    <?php
    				wp_pagenavi( array( 'query' => $my_query) );
    				wp_reset_query();
    				?>

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. faspada
    Member
    Posted 1 year ago #

  3. luquerias
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic