• Future Post seems to be broken in the new super fantastic WordPress 2.1. The site I’m using it gives an events calendar with future posts/events being shown

    I had previously also made manual changes to the classes.php to enable listing of ALL posts not just ones with a dates from today backwards….

    I’ve spent my afternoon searching through the source code and can’t find the bit where the date settings are made.

    Previously you could change/remove a line such as –
    $where .= ” AND post_date_gmt <= ‘$now'”;

    Can some one point me in the right direction?
    Thanks

Viewing 3 replies - 31 through 33 (of 33 total)
  • People having troubles with modyfing the calendar to display future posts:

    even as a total PHP noob, I’ve managed it ??

    line599, general-template.php

    change

    AND post_date < '" . current_time('mysql') . '\'', ARRAY_N);

    into

    AND post_date <> '" . current_time('mysql') . '\'', ARRAY_N);

    Hope this helps other people out, as i saw this request often!
    Now you can use WordPress more as an event organizer/manager if future dates are tagged as published

    cheers!
    H

    PS. I understand Otto’s view, but hell, it’s funky to use things for other purposes they’re designed for.
    I used to use my old car as a storage space. Still could drive with it :p

    Why can we not just have a little hook for a plugin, so everybody WHO WANTS to view future dated posts can do so with some plugin.
    Maybe it was not right to hack wordpress to use it as a cms, but I did in the past and now i always have to hope everything will work after updating wordpress. by the way this is the reason why some of my old customers still work with wordpress 2.0. i would love to update their installation on a regular basis, but i am just afraid of destroying their site.

    shacker

    (@shacker)

Viewing 3 replies - 31 through 33 (of 33 total)
  • The topic ‘Future Post listings in WP 2.1’ is closed to new replies.