Query Posts relative to time
-
Suppose the wordpress time right now is 12:00 PM and I published a few posts before “now”. I also published a few posts after “now” (yes, i published a post in the future using a plugin).
So right now the home page of the site shows both posts published before “now” and after “now” all together in the order of the posts from the future first to the oldest posts.
Here is the big question:
How do I only show posts that were published after “now”?
AND
How do I only show posts that were published before “now”?* One more thing…the plugin changed all of the posts’ status to “published” so using query_posts(‘post_status=future’); wouldn’t work. That’s why it has to be relative to time and not status.
The topic ‘Query Posts relative to time’ is closed to new replies.