Updating Feed Details

I'm making some minor changes to the feed address tonight in the hopes of consolidating two minor issues I've seen with it.

If you're currently subscribed directly to my Feedburner feed this will affect you - if you're subscribed at the local address (http://bill2me.com/feed/) then you won't notice any changes.

After this post if you're interested in continuing to receive updates be sure to check in on the site and subscribe using the buttons provided at the top left hand corner of the page.

Upgrading to WordPress 2.3

While I haven't made the move to upgrade bill2me.com quite yet I have managed to upgrade several of my smaller sites since getting home from work today.

Anyone with trepidation over the upgrade should know that it's relatively straight forward and doesn't offer much more of a difference than what most security upgrades require. One word of caution for anyone using a WordPress install that has several plugins - wait.

My smaller sites used relatively few plugins and the result was a smooth transition. Because bill2me.com uses about 10- 15 plugins I'm expecting the move to be a bit more treacherous - especially considering the need to migrate my tags into the new built in WordPress system.

Has anyone made an upgrade on a large site yet? How's it gone so far?

WordPress Theme Design - Body and Sidebar

Leading up to now we've managed to build template files for our header, footer and stylesheet. All that's left, right now, is to build template files for our index.php and sidebar.php files. For the time being we're going to keep these files as simple as possible - just like our header, footer and stylesheet.

After this post is complete we're one post away from our super basic WordPress template. Let's get started.

The Sidebar.php File

For now we're only interested in setting up the basic sidebar so we'll skip over adding any content to it. All the file really needs to contain is some basic text just to signify the sidebar itself. Later on we'll talk about floating the sidebar and getting it exactly where we want it - that's still a short while away though.

For now you simply want to include some basic text in your file - just "This is the Sidebar" will do.

The Loop and Index.php

The WordPress Loop is the code that really controls any listing of your posts. Whether it's a category page, post, or Page you'll be using the loop to call your posts. Most of the hard work is all behind the scenes - you just need to familiarize yourself with the basics. For now we're interested in running a very basic version of the loop so we'll keep it simple. When we start talking about customizing a post we'll get into more detail.

The Loop in Action

Below you'll see a basic version of the WordPress Loop. We're not going to do anything fancy with it right now - just set it up to display posts. The code below will display each post's title as well as the post's content. Simply add the following text to your index.php file and your loop will be ready.

<?php if (have_posts() : while (the_post()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php endwhile; else : endif; ?>

The code above is a relatively simplified Loop. When executed it will simply display all post titles and the post content. It won't look spectacular but it will do the job.

Calling the other Templates

At this point our basic starting theme is almost done. In order to bring everything together we need to include a few more lines of code. WordPress offers some simple tags for calling our header, footer and sidebar which we need to add to our index.php in order to get things running.

Thankfully the tags we need are really easy to remember - it's just a case of putting them in the right place. In an un-styled page we want our content to behave a certain way. The basic page structure requires that our header and footer always start and finish the page so we know right off the bat that they'll lead and close our index.php file.

Besides our header and footer we also need to add the sidebar. Bare in mind that your content should always precede your sidebar text. Recognizing this your sidebar should always be called after your content but before your footer - here's how it'll look:

<?php get_header(); ?>
  Loop Goes Here
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Once you've done this boot up your version of WordPress sandbox and you're ready to go. Tomorrow we'll begin dissecting playing around with the theme's color and typography.

WordPress Theme Design - style.css

In this post we're just going to discuss some of the basics for putting together a WordPress stylesheet. When we get into the specifics of the theme pictured at the start of this series we'll talk about some of the CSS needed, for now we're just looking at some basics for creating a stylesheet that can be used when starting any new theme.

WordPress has a very basic set of rules for defining a theme's stylesheet. If you're interested in starting to design your own themes it might help to create a few template files that can be used anytime you want to start fresh. In the last post I listed a few files that you could create for getting started - in this post we'll start filling out the style.css file to get it ready for later customization.

The Required Header

CSS doesn't specifically require any type of header when you're putting together a stylesheet - WordPress, however, does. Besides simply allowing you to use your theme, the header is great for setting up an organization structure for your stylesheet. The basic WordPress header looks like this:
/*
Theme Name:
Theme URI:
Description:
Version:
Author:
Author URI:
*/

It's all pretty straightforward and simply adding the text above to your style.css file is enough to get WordPress to accept your theme.

WordPress Theme Design - Header and Footer

Today and tomorrow we'll take a closer look at building some template files for your first WordPress theme. The files we'll be constructing are the bare basics of your theme and can be recycled anytime you want to start something new. With an emphasis on the basics we'll look at the files suggested in our previous post on Getting Started with WordPress Theme Design and by tomorrow night (roughly 4 posts away) we'll have our first test theme ready.

In this post we'll work briefly with the header.php and footer.php files. We'll create some basic structures in the files and get them ready for when we really take on the brunt of actually designing the page.

Let's start with the Header. Read the Rest of this post