I’m really having a hard time displaying future posts with no problems…
-
Ok. So I think I’ve tried almost everything to display future posts. Read below to see what I’ve done…
I’m trying to make a trailer site so that:
-Home page shows future posts and published posts.
-Coming Soon page shows only future posts.
-In Theaters page shows only published posts.In order to do this, I added
<?php query_posts('post_status=future, publish'); ?>
to the Home page
<?php query_posts('post_status=future'); ?>
to the Coming Soon page
<?php query_posts('post_status=publish'); ?>
to the In Theaters pageUnfortunately, things didn’t go as I wanted. Adding query_post screwed up my search and also my WP_Page_Numbers.
So, I added
wp_reset_query()
and problems that resulted are:
-Home page displays only one future post and the rest are published posts (WP_Page_Numbers works)
-Coming Soon page displays only one future post
-In Theaters Page displays only one published postSomething is obviously wrong, please try to help me. Are there any possible solutions or alternate ways to dealing with this?
- The topic ‘I’m really having a hard time displaying future posts with no problems…’ is closed to new replies.