Title: Future posts and single.php
Last modified: August 19, 2016

---

# Future posts and single.php

 *  [pearcel](https://wordpress.org/support/users/pearcel/)
 * (@pearcel)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/future-posts-and-singlephp/)
 * Hi guys,
 * I am a wordpress newbie and completely baffled. Got my archive page working nicely.
   However, my main event listings page displays ok (via index.php) showing only
   future events, but when I click the permalink the page stays on index.php and
   does not redirect to single.php to display the single post.
 * My homepage uses page.php (as I wanted to display some jquery widget on it) and
   I have future events listed on the page.php also. When I click the future event‘
   the_permalink’ on page.php also, the page just
 * Not sure if my query is incorrect, or I have just not noticed something verys
   simple, but I have gone blind looking now and was wondering if someone could 
   help? I have noticed that when I log in as admin, the posts display, when I log
   out, they do not.
    index.php
 *     ```
       <div class="entries">
   
       	<?php $recent = new WP_Query("post_status=future&order=asc"); if (have_posts()) :
       while($recent->have_posts()) : $recent->the_post();?>
   
       				<div class="entry">
       					<h2><a href="<?php the_permalink();?>"><?php the_title();?></a></h2>
       					<p><?php the_date();?></p>
       					<p><a href="<?php the_permalink();?>">Read more</a></p>
       				</div>
   
       	<?php endwhile; ?>
   
       <?php else: ?>
       <p>Sorry, there are currently no walks or events, but keep checking!</p>
       <?php endif; ?>
       ```
   
 * single.php
 *     ```
       <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
       			<h2 class="top"><?php the_title(); ?></h2>
       			<?php the_content(); ?>
       	<?php endwhile; ?>
   
       	<?php endif; ?>
       ```
   

Viewing 1 replies (of 1 total)

 *  [Stanley Dumanig](https://wordpress.org/support/users/sdumanig/)
 * (@sdumanig)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/future-posts-and-singlephp/#post-1203391)
 * install this plugin: [http://wordpress.org/extend/plugins/show-future-posts-on-single-post/](http://wordpress.org/extend/plugins/show-future-posts-on-single-post/)

Viewing 1 replies (of 1 total)

The topic ‘Future posts and single.php’ is closed to new replies.

## Tags

 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Stanley Dumanig](https://wordpress.org/support/users/sdumanig/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/future-posts-and-singlephp/#post-1203391)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
