• Mr. X

    ok, I was going to use WP for a gig calendar for a sax player’s site I’m designing now but it looks like entries don’t show up if the date is in the future? If I post in past or present, no prob, but if I change the time stamp to a future date, it desappear from the published blog… Still in the database and edit panel.
    Any idea?

Viewing 15 replies - 31 through 45 (of 46 total)
  • Noemi

    (@noemi)

    So did any oen got it to mark future dates in the calendar? After applying those hacks I got the blog and the calendar to show me next months but it’s not marking dates with posts with them on the calendar.

    sybold

    (@sybold)

    https://wiki.www.ads-software.com/EventCalendar2

    the only problem is, it doesn’t work with 1.5

    andym

    (@andym)

    I’m trying to do something similar – I ONLY want future events to show. This can be achieved by changing post_gmt <= to post_gmt >= in line 489 of classes.php. The problem is that categories only show up for posts in the past. Any ideas where I might be able to change this?

    andym

    (@andym)

    I dont think the plugin will work with 1.5. I’m trying to do something similar to Mr X but I want ONLY future events to show. This can be achieved by changing post_gmt <= to post_gmt >= in line 489 of classes.php. The problem is that categories only show up for posts in the past. Any ideas where I might be able to change this?

    likoma

    (@likoma)

    1.5 categories not showing up for future posts (and I only have future posts for now)

    NOT an optimal solution, but at midnight with not much hope, at least it works (manually put in the category links … shame shame!)

    `

      <div id=”menu_title”>
      <?php bloginfo(‘name’); ?> <?php _e(‘Categories’); ?>
      </div>
    likoma

    (@likoma)

    How can I edit my own (messy) post?

    Chadwick

    (@chadwick)

    Wow.. this is exactly what i need for a few sites i’m developing. Thanks alot for the code.

    Root

    (@root)

    Static pages might be one way forward for non date specific info.

    brennan

    (@brennan)

    I came up with a few hacks that seem to have worked. On line 489 of classes.php I replaced the
    $where .= " AND post_date_gmt <= '$now'"; with:

    if ($cat_array[0]==X) {
    $where .= " AND post_date_gmt >= '$now'";
    } else {
    $where .= " AND post_date_gmt <= '$now'";
    }

    To allow viewing of future posts in category X (which you should change to the category_id that you’d like to view future posts of).

    Then, in template-functions-category.php on line 298 I replaced

    AND post_date_gmt < '$now' $exclusions

    with

    AND (post_date_gmt < '$now') OR cat_id = X $exclusions

    again, X is the category_id that you’d like to have viewed.

    The downsides I suppose are if you don’t have any upcoming events, you’ll still be able to click on category X, and get the no posts found error. Also, when the month changes over, if you only have in categories with category_id’s lower than category X, and you have future posts in category X, only the future posts will show up.

    Never mind, I missed the third page of posts!

    I just wrote a plug-in called “Future Posts” that might fit your needs – I intended it more for administrators to preview future posts, but you can also configure it to always show future posts everywhere.

    This is for WP 1.5 ONLY. Unfortunately the plug-in hook I used does not appear to exist in 1.2.

    https://www.figby.com/archives/2005/04/12/wordpress-15-plug-in-view-future-posts/

    Poing asked this earlier but I didn’t see a response. If I write a post today but set the date to 0600 tomorrow, when does the ping happen (assuming that it does)? Since WP is, I think, read driven, I’m assuming that the ping does not go out at 0600 tomorrow, though that is what I’d like.

    For someone reading the blog, it wouldn’t matter and all post up to that time would apprear, but I’m wondering about the RSS aggregators. I would think that if I went to My Yahoo at noon tomorrow it would not show a last update time of 0600.

    Is this right? If it is right, is there a fix? Like setting up a cron job to ping?

    I can get the posts to appear using “Future Posts” plug-in but these don’t appear on the ‘calendar’ . Has anyone got this portion working? I would like my users to see into the future at posts upcoming ?? . Thanks.

    This may help someone:
    WordPress EventCalendar plugin

    I’m trying to use the method shown in this post ( https://www.ads-software.com/support/topic/2518#post-24177 ) with the following code being used in classes.php on line 489:

    if (!($cat == ‘5’)) {
    $where .= ‘ AND post_date <= \”.$now.’\”;
    }

    Future posts do show but they are not restricted to the category I want (in this case, 5). Is there something I’m doing wrong? Thanks for any help!

Viewing 15 replies - 31 through 45 (of 46 total)
  • The topic ‘blog to the future’ is closed to new replies.