WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Turn Off Future Post (5 posts)

  1. zachmorris
    Member
    Posted 8 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!

  2. ptroxler
    Member
    Posted 8 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

  3. zachmorris
    Member
    Posted 8 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).

  4. zachmorris
    Member
    Posted 8 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

  5. bluedragon
    Member
    Posted 8 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.

Topic Closed

This topic has been closed to new replies.

About this Topic