Hey, we’re coming back

The calendar has been moved to a new server. Please bear with us while we get things working again. . . . btw, some notes to self and other lost newbies:

How to make Wordpress into an events calendar blog

To get future posts to come out of hiding, follow this simple tip from scriptygoddess.com

Look for your post.php in wp_includes and find:

—–

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

—–

change the last future to publish like this:

$post_status = ‘publish’;

—–

Next, ,here’s how to limit the index page to upcoming events category, sorted ascending:

—–

<div id=”content” class=”narrowcolumn”>

<!– PROAUS HACK to return upcoming events only –>

<?php query_posts(‘cat=3&order=asc’); ?>

<!– END HACK –>

<?php if (have_posts()) : ?>

—–

also, while I was manually importing old data via mysql, I found this little bit of code from hardcoded.net

UPDATE mytable SET mycolumn = ‘myvalue’

which allows you to convert column values by the batch (comments closed, post type post)

—–

Comments are closed.