Archive for July, 2008

Bliss

Monday, July 28th, 2008

Coconut Bliss – non-dairy frozen dessert.

Bliss photo

How-To Show A Single Category On Your Front Page

Wednesday, July 23rd, 2008

Sometimes life is just so very simple.

I was loooking over that link and came accross this tiny bit of code that will allow you to display a single category on your front page. So easy… so sweet =)

<?php
  if (is_home()) {
    query_posts(“cat=1″);
  }
?>

How-to password protect your Wordpress blog

Tuesday, July 8th, 2008

A client requested that their entire site be password protected. I thought I could easily use .htaccess but found out that life with Wordpress is a bit more difficult.

Fortunately, the Wordpress developmnt community is robust and found this pluging along with this nice update to make it work with Wordpress 2.5+.

Yeah!

How-To create templates for individual posts using Wordpress

Wednesday, July 2nd, 2008

How-To create templates for individual posts using Wordpress

I simply adore stuff like this. While it took me 15 or 20 minutes to figure out what they were talking about, once I did it was both elegant and easy to replicate. Open Source Rocks!

The Problem

Wordpress allows you to easily create templates for “Pages” and entire categories. This is very handy and easy to implement.

Wordpress does not make it easy to create a template for a single post.

In my case, I needed the first post in a category to have a special link for the “previous-link” navigation. Additionally, the last post needed the same link for the “next-link” navigation. (Normally, the first post would have a blank right navigation since there is no previous post and the last post would have a blank left one since there is no next post.)

The Solution

In order to create a category template you have to name the template file category-n.php where “n” is the category ID. [Hint: Select Manage > Category > Your Category and then look at the URL - it will contain the category ID!]

Well these guys figured out how to do the same thing by creating similar category templates and then assigning your post to that category. The >>REALLY<< cool and elegant thing is that the "update" by Austin allows you to place a post in multiple categories (the real one and the template one).

Thanx gentlemen!