WordPress.org

Forums

blog to the future (47 posts)

  1. TechGnome
    Moderator
    Posted 10 years ago #

    Ah! Here, see if any of these help:
    http://wiki.wordpress.org/?pagename=Plugin#calendar

    Tg

  2. Noemi
    Member
    Posted 10 years ago #

    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.

  3. sybold
    Member
    Posted 10 years ago #

    http://wiki.wordpress.org/EventCalendar2

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

  4. andym
    Member
    Posted 10 years ago #

    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?

  5. andym
    Member
    Posted 10 years ago #

    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?

  6. likoma
    Member
    Posted 10 years ago #

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

    `

  7. likoma
    Member
    Posted 10 years ago #

    How can I edit my own (messy) post?

  8. Chadwick
    Member
    Posted 10 years ago #

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

  9. Root
    Member
    Posted 10 years ago #

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

  10. brennan
    Member
    Posted 10 years ago #

    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.

  11. shoshanna
    Member
    Posted 10 years ago #

    Never mind, I missed the third page of posts!

  12. mmoncur
    Member
    Posted 10 years ago #

    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.

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

  13. DonMelvin
    Member
    Posted 10 years ago #

    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?

  14. anjenaire
    Member
    Posted 10 years ago #

    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.

  15. Jon Bourne
    Member
    Posted 9 years ago #

    This may help someone:
    WordPress EventCalendar plugin

  16. MrThrill
    Member
    Posted 9 years ago #

    I'm trying to use the method shown in this post ( http://wordpress.org/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!

  17. contentrobot
    Member
    Posted 8 years ago #

    The EventCalendar3 plugin works well to show future events. One caveat when using WP 2.0 with a modified permalink structure (like /2006/08/03/sample-post/)... Make sure to apply the Patch for WordPress 2.0 described here http://blog.firetree.net/2006/01/31/eventcalendar-303/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags