Support » Plugins » Back to the Future (Again)

  • I (and others) have asked about this, but I’m still in the dark.

    I’m hoping for a template modification or plug-in that will allow me to show future dated posts on my home page.

    I tried Event Cal but it obliterated my site. I also tried the Future Post plug in but had no luck. (I think part of the issue could be that I have removed the perma-links from my site, as I don’t want them for my posts).

    This is the last major piece in the puzzle of this site I’m developing and I’m hoping someone can lend a hand or some code. I really appreciate it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Here’s a search of the forums for “show future posts“.

    Believe it or not, I actually did that search. I tried all of the solutions offered there–most of them suggest Event Cal or Future Post plug in–including Kafkaesqui’s code. I couldn’t get any of those solutions to work for my site, so I was hoping for some fresh advice. Perhaps I missed a solution in there, however, and I’ll comb back through the archives.

    Still if anyone has help to offer, I’d greatly appreciate it!

    I’m not much of a PHP guy, but had the same requirement as you – after searching the forums with no luck, i decided to search my WP files for the word “future”, as the newest version of WP seems to tag posts as “future” in order to stop them showing.

    Hacked the post.php file and removed the code below from lines 559-563

    ” if ( ‘publish’ == $post_status ) {
    $now = gmdate(‘Y-m-d H:i:59’);
    if ( mysql2date(‘U’, $post_date_gmt) > mysql2date(‘U’, $now) )
    $post_status = ‘future’;

    Not sure if this will cause a site crash further down the line (saved the original post.php file as something else for backup!), but it seems to have the desired effect with new post-dated posts on the site, i.e. it doesn’t exclude them from showing.

    Hope this helps – like I say, i’m no PHP coder, so if anyone thinks this will cause problems, please let me know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Back to the Future (Again)’ is closed to new replies.