Blogging from the future - forcing wordpress to show future dates
January 27, 2008 4:12 AM
Subscribe
How can I get wordpress to show a post as though it had been published in the future?
So, in a bid to stimulate both regular writing and generate some ideas for longer form work, I've come up with the idea of writing a blog that appears as though it's coming from twenty or thirty years in the future. Wordpress has a future-dating feature that lets you put a future date on a post, but as far as I can work out, that means it will hold that post until that date and time is reached.
Am I missing something, or is there a simple method (or plugin) that will let me publish a post now, today, but have the calendar and date show as a date in the future? For example, I post an entry today, Sunday 27th Jan, at 5pm GMT, but I want it to show up on the blog as, I dunno, Thursday 27th Jan 2028, 5pm GMT. How would I do that?
posted by Happy Dave to computers & internet (12 comments total)
2 users marked this as a favorite
Say when you place
<?php the_time('Y') ?>in a template, it shows the year that post was created. So, you'll need to change the function the_time in a way Y is always Y+20. Though it is probably best to create a function with a new name that calls those dates.posted by ijsbrand at 4:45 AM on January 27