Loop through posts of a custom-post-type (event) and create .ics (iCal) file?

I really need your help with a feature I have never worked with so far. I have a custom-post-type named wr_event. And I created this custom WP_Query to retrieve all posts for this post-type that are “younger” than yesterday. Fairly simple and this works like a charm. function event_list_iCal() { $yesterday = time() – 24*60*60; … Read more

Convert String to Calendar Object in Java

I am new to Java, usually work with PHP. I am trying to convert this string: Mon Mar 14 16:02:37 GMT 2011 Into a Calendar Object so that I can easily pull the Year and Month like this: String yearAndMonth = cal.get(Calendar.YEAR)+cal.get(Calendar.MONTH); Would it be a bad idea to parse it manually? Using a substring … Read more

Calendar date to yyyy-MM-dd format in java

How to convert calendar date to yyyy-MM-dd format. Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, 1); Date date = cal.getTime(); SimpleDateFormat format1 = new SimpleDateFormat(“yyyy-MM-dd”); String date1 = format1.format(date); Date inActiveDate = null; try { inActiveDate = format1.parse(date1); } catch (ParseException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } This will produce inActiveDate = Wed Sep … Read more

Event Calendar on hosted wordpress?

I see a number of posts on various plugins for doing an Event Calendar that work with WordPress, but the free hosted version does not allow me to use these. Are there any solutions that would work for hosting a calendar of events for an organization that I volunteer for? Even embedding a Live/Google calendar … Read more

Dynamic iCal generator outside/inside wordpress

So following on from this post: https://stackoverflow.com/q/1463480/1086990 I was wondering how exactly it would work integrating it into WordPress. I have a custom post type setup, and so far I have tried both linking to a “ical.php” with the above link code (and changing the title into the_title() and the dates into GMT versions of … Read more