how to only show future posts in a cat
I have a category for events which is set up to display posts in reverse order so that the most upcoming events show first. I’ve already figured out how to display future posts, but now my concern is how to not show posts from the past on the home page once the events have already gone by?
For instance, there are a list of events, the top one being on August 25th. August 25th passes and that event/post will remain there but I want it to disappear so that the most upcoming event is always displayed first.
I would simply delete the events once they occur but I’d like to keep all of them for viewing on the category page. For this I’d simply like to create something to use in the events category loop I’ve made on the home page.
- The topic ‘how to only show future posts in a cat’ is closed to new replies.