Hi, all:
I'm a decent Java coder and baby *NIX user setting up my first LAMP stack (dang! This LAMP thing is UNBELIEVABLY easy in Kubuntu!! I've already got a site up and running after only a few hours!). I've gone through a few of the PHP tutorials here, and searched for this topic, but haven't had any luck finding help, or getting my index.php file to straighten up and fly right. Here's the tutorial I have been trying to use to set up my Wordpress blog to have two columns (so I and my friend can each have a column with separate comments, RSS feed, etc):
http://www.cre8d-design.com/blog/2008/03/01/how-to-organize-posts-into-two-side-by-side-columns-in-wordpress
I'm trying to edit my index.php file to do what this tutorial says, but I'm getting errors. Here's my code:
#
# <?php
# $col = 1;
# if ($col == 1) echo "<div class=\"row\">";
# /**
# * Front to the WordPress application. This file doesn't do anything, but loads
# * wp-blog-header.php which does and tells WordPress to load the theme.
# *
# * @package WordPress
# */
#
# /**
# * Tells WordPress to load the WordPress theme and output it.
# *
# * @var bool
# */
# define('WP_USE_THEMES', true);
#
# /** Loads the WordPress Environment and Template */
# div class="post col<?php echo $col;?>" id="post-<?php the_ID(); ?>" //apparently the error is here...
# require('./wp-blog-header.php');
# if ($col == 1) echo "</div>"; (($col==1) ? $col=2 : $col=1); endwhile;
# ?>