25 thoughts on “The Upcoming Event Calendar: A Meta Data Driven WordPress Event Calendar for Bloggers

  1. Just ran across this and it looks like the solution we have been looking for! Thank you for the great post. Question…how does it handle recurring events/dates? Say a particular bar, every Wednesday? Will it show up on the list for all recurring dates or just the initial date?

  2. It doesn’t really handle recurring events at this point, though if you’re handy with the PHP you could probably add some code in there to deal with them in no time at all. It’s actually a great suggestion and I think I’ll probably add it in to a future release (whenever that may be).

  3. Great code, thanks a lot.

    I was able to do the part with the sorting by custom field, but I didn’t knew how to display only the upcoming events.

  4. Hi there. I mean I was able to do a part myself, but I never figured out how to display only the upcoming events, but thanks to your code now it’s very easy. Thanks again.

  5. This is a really great mashup. Thanks a lot.

    One thing, I was able to get the main Upcoming Events page to show up and populate properly, but I wasn’t sure how you created the small right hand “Upcoming Events” sidebar list that links to the main Upcoming Events page.

  6. Hi, this looks like exactly what I’m looking for, thanks! :) I have one question – is it possible to show the present event (exhibition in my case) somewhere? I should have exhibitions page which shows the present exhibition and links to the past and becoming exhibitions.

  7. Actually I think I already found a solution, I just have to modify line 83 to if($show_date = $today), that way it would show only the current exhibition, right?

  8. ah, the code doesn’t show up correctly here. anyway the idea was to compare today’s date both to the end date and start date. If it is smaller (=) than start date it will show the post.

    1. sorry for this mess, even the “less than” and “greater than” marking doesn’t show up here. Anyway, my modified code shows the event only if the start date is less than/equals today’s date AND the end date is greater than/equals today’s date. Simple really.

  9. Thanks for the post. I used some information here to help me find the solution for a project I’m working on (though I did it a bit differently).

    I noticed you are using a comparison in your PHP loop to pick out all items in the future. You can do this much more efficiently by adding a comparison to your query_posts string:
    .’meta_compare=>=&meta_value=’. date(‘Y/m/d’, current_time(‘timestamp’)
    This will only return posts with date greater than or equal to the current date, so you won’t have all of the earlier posts in your loop. There could end up being a lot of old posts after a while.

  10. Wow, this is great! I’ve been working on and off on an event calendar, and now, I’m finally going to finish it. Thanks for the sample, and thanks to Toby for the database query optimization!

  11. Thanks so much for this post. It has been a great help. I tried customizing four different event calendar plugins and failed. This route is working.

  12. I’m only getting a Parse error: syntax error, unexpected T_ENDWHILE

    on the events page. I’ve tried on different themes too…

  13. I am also getting an error:

    Parse error: syntax error, unexpected T_ENDWHILE in …\wp-content\themes\twentyten\calendar.php on line 188

    Is there a fix for it? I’d love to get this working as I think it’s a great idea.

Leave a Reply

Your email address will not be published. Required fields are marked *