strandoo
Forum Replies Created
-
Forum: Your WordPress
In reply to: Fictional High School Football (Soccer) Site (with Book Tie-in)DOH!
https://www.bridgewoodhighfc.comThanks, Footbag
Forum: Plugins
In reply to: Showing future-timestamp posts to everyoneHi,
I fixed my problem, so I thought I’d let you know in case it will solve yours.I found what I think was an earlier version of ‘The Future Is Now!’ (the Version: R1.0.1 one you quote above). Instead of
function show_future_where($where) { global $wpdb; if( !is_single() && !is_page() ) $where .= " OR $wpdb->posts.post_status = 'future' "; return $where; }
He used
function show_future_where($where) { return str_replace('(post_status = \'publish\' OR post_status = \'private\')', '(post_status = \'publish\' OR post_status = \'private\' OR post_status = \'future\')', $where); }
This didn’t work for me as is, but I stripped it back to:
return str_replace(‘post_status = \’publish\’ ‘, ‘post_status = \’publish\’ OR post_status = \’future\”, $where);
(got rid of the ‘private’ and some brackets). That did the trick for me.
PaulForum: Plugins
In reply to: Showing future-timestamp posts to everyoneJanko: I’ve got a similar need/problem and I too have tried the plugin above (The Future is Now!, Version: R1.0.1 with the code posted above, not the one by shacker and rboren which you link to. It’s confusing, because they are named the same but achieve their goals differently).
I’m working on a sort of game that unfolds over time, so I want to pre-write my wordpress content and have the posts appear over time. But I need to preview the ‘future’ posts now. So I’m working on a plug-in based on the Future Is Now!
My problem is different than yours: unlike you, I can view my ‘future’ posts when I’m logged in as admin OR NOT. My problem is that the ‘future’ posts display in every category, whether I want them to or not (i.e.; PostX in Category A with a status of ‘future’ displays at the top of Categories A, B and C; PostY in Category B with a status of ‘published’ and a past date displays (correctly) only in Catagory B).
Do you have this problem? If not, I suspect our problems might relate to our versions of WordPress or maybe the theme files we’re using.
I’m using WP 2.5 and my theme is based on ‘Vertigo Blue’.
I’m a WP noob, not a guru, so I just hammer away, trial-and-error. Any light you can shed?