Category Archives: PHP

Using multiple categories in EventCalendar3 for WordPress (update 1)

By | June 11, 2006

wp-includes/classes.php line 679-702, for the Events listed outside of the Event category if (mysql2date(‘U’, $this->posts[0]->post_date_gmt) > mysql2date(‘U’, $now)) { //it’s future dated $this->is_preview = true; /* DIRTY FUTURE-POSTS HACK FOR EC3 */ if (function_exists(‘ec3_get_calendar’)) { global $ec3; $ec3_post_0_is_event = intval($wpdb->get_var( “SELECT COUNT(0) FROM $wpdb->post2cat WHERE post_id=” .$this->posts[0]->ID.” AND category_id IN (‘$ec3->event_category’,’14’)”)); if ($ec3_post_0_is_event) { $this->is_preview… Read More »

Using multiple categories in EventCalendar3 for WordPress

By | June 11, 2006

So I read at a few points that EventCalendar 3.1 was on its way, but I decided to start mangling some code to get multiple event categories to work! Open eventcalendar3.php near line 525; // Which posts are we interested in? if($ec3->show_only_events) { // Category ID number for event posts. $where_post = “category_id IN (‘$ec3->event_category’,’14’)”;… Read More »