Support » Fixing WordPress » Turn Off Future Post

  • Resolved zachmorris

    (@zachmorris)


    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    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).

    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

    Yes, but they still don’t show up on the Calendar, though you can still browse through the months and view the posts.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Turn Off Future Post’ is closed to new replies.