wp-includes/classes.php line 679-702, for the Events listed outside of the Event category
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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 = false; } } if ($this->is_preview) /* DIRTY FUTURE-POSTS HACK FOR EC3 */ if (!current_user_can('edit_post', $this->posts[0]->ID)) { $this->posts = array ( ); } } |
eventcalendar3.php line 1048
1 2 3 | $post_list=$wpdb->get_results( "SELECT DISTINCT(post_id) FROM $tablepost2cat " . "WHERE category_id IN ('$ec3->event_category','14')" ); |
#1 by simon - November 3rd, 2006 at 05:50
hi
i have tried your hacks as above & on your previous post, but i just cannot get it to work.
whatever i try, the only future posts that will show up, are those in the category i select on the options page.
do you have any idea why this might be?
thanks!
simon
p.s. for some reason i cannot see any of the reponses on your blog, although it says there are 5…