Archive for category Portfolio
Future post searching for WordPress
I am setting up a new WordPress blog, 2.0.3, for another site. This site is using EventCalendar 3.0 and will have future scheduled posts that represent events. However WordPress doesn’t have this option built in from what I can see and a quick search yielded no results.
I did a few searches and finally opened up classes.php, goto ~590 to find this:
1 2 3 4 | if ($pagenow != 'post.php' && $pagenow != 'edit.php' && !($this->is_single && $user_ID)) { $where .= " AND post_date_gmt <= '$now'"; $distinct = 'DISTINCT'; } |
Replace it with this code.
1 2 3 4 5 6 | if ($pagenow != 'post.php' && $pagenow != 'edit.php' && !($this->is_single && $user_ID)) { if (empty($q['s'])){ $where .= " AND post_date_gmt <= '$now'"; } $distinct = 'DISTINCT'; } |
Bingo! Now on your search pages future posts are displayed!
You can see this in effect at www.austinpublic.com
Tool – 10,000 Days Pre-Release Listening Party
Thought I would go ahead and post about a website I did this past Thursday evening for a party next Saturday. I am still trying to use all the CSS layout techinics I can although sometimes I fail to see the point. Tested in IE6, IE7, and Firefox 1.5.0.2
EDIT: The original site has been taken down so I hosted it here:
http://barrett.sonntag.org/portfolio/tool
If your in Austin, TX come and listen to the new Tool album first on Saturday April 29th!