zachmorris
Member
Posted 7 years ago #
I'm using wordpress 2.0 and importing event information as posts into my blog.
The information is imported correctly, but it isn't posted since the timestamp is in the future. Is there any way I can easily allow these future posts to be seen (other than changing the date?)
Thanks!
ptroxler
Member
Posted 7 years ago #
somewhere in classes.php it says:
if (mysql2date('U', $this->posts[0]->post_date_gmt) > mysql2date('U', $now)) { //it's future dated
$this->is_preview = true;
if (!current_user_can('edit_post', $this->posts[0]->ID)) {
$this->posts = array ( );
}
hmmmm....
without evaluating further consequences I'd comment out the second if clause which prevents not logged in users to see a post in the future
zachmorris
Member
Posted 7 years ago #
Hmmmm... You would think that would do it, but anything I do to the above if statements doesn't seem to change the posting (you can manually go to the post by entering the address, but it doesn't show up in the listing of posts).
zachmorris
Member
Posted 7 years ago #
I found a bit of a workaround (and an extra feature). Using EventCalendar3.0, you can post future events into a seperate category.
Thanks,
Zach
bluedragon
Member
Posted 7 years ago #
Yes, but they still don't show up on the Calendar, though you can still browse through the months and view the posts.