Calendar: only show future posts
-
I’m using a WordPress installation as an event calendar only. I’ve had no problem tweaking the loop to only show future posts, but I can’t seem to get the calendar to do the same.
Since it’s only acting as an event calendar, my intention was just to hard-code the calendar to show future posts instead of using plugins. In the get_calendar function in general-template.php, I changed the “post_status” instances from ‘publish’ to ‘future’, but the calendar isn’t showing posts.
The “// Get the next and previous month..” section seems to be working, as the month links appear as expected for future posts. It seems like the “// Get days with posts” section is where the problem is, but I can’t sort it out.
Is there something I’m missing?
(BTW, the site in question is http://dayspringfellowship.org/calendar.)
- The topic ‘Calendar: only show future posts’ is closed to new replies.