Tag Archives: Themes

Custom Category Templates on a Archive or Index page.

April 23, 2008 by aaron
On my home page and in my archives, I use a custom category template to display asides and news articles. This is very easy to do and it only takes a couple seconds of work to create custom category templates in any WordPress theme. The first step is to add the following to your current theme’s index.php loop after the line that looks like <?php while (have_posts()) : the_post(); ?>, but before any other code.
Read More ⟶

Displaying WordPress categories in a horizontal dropdown menu.

April 16, 2008 by aaron
One of my readers recently asked how I created my horizontal menu bar: the short answer is by mixing CSS and Javascript. The first step is to get WordPress to display the menu as a hierarchical list without a title. <?php wp_list_categories('sort_column=name&sort_order=asc&style=list&children=true&hierarchical=true&title_li=0'); ?> We then wrap this WordPress code in the following so we can style it. <div style="text-align:center;"> <ul id="menu" style="padding:0; margin:0;"> <?php wp_list_categories(&#039;sort_column=name&sort_order=asc&style=list&children=true&hierarchical=true&title_li=0&#039;); ?> </ul> </div> I added this to my header.php, but you can add it anywhere you want it to appear.
Read More ⟶

Designing flexible WordPress themes.

April 29, 2007 by aaron
The average WordPress theme has different files for pages, single posts, archives and the front page; however, most of them are almost exactly the same except for inside the_loop. This is a quick tutorial on how to do the most with the fewest files, and includes a few methods to have custom templates by separating content display from structural elements. WordPress looks first for special files and then defaults to the index.php file (as shown in this diagram).
Read More ⟶

Creating a World- An Introduction and The Goals

April 3, 2006 by aaron

I have always wanted to write a book. Not just any book; a good one. One that creates an entire universe and populates it; maybe not even a single book, maybe a whole series. Anyway, that’s not why this whole section is here. Instead this section will create a universe. As a basic foundation it will be similar to any Fantasy book or movie you have read. There will be Elves, Dwarfs, Goblins and Dragons. Instead of creating a world defined by the genre and within a tired cliche, I will try to breath new life into the old themes; in such a way that the universe I create is unique while still be familiar and accessible.

Read More ⟶

Custom Category Templates on a Archive or Index page.

April 23, 2008 by aaron
On my home page and in my archives, I use a custom category template to display asides and news articles. This is very easy to do and it only takes a couple seconds of work to create custom category templates in any WordPress theme. The first step is to add the following to your current theme’s index.php loop after the line that looks like <?php while (have_posts()) : the_post(); ?>, but before any other code.
Read More ⟶

Displaying WordPress categories in a horizontal dropdown menu.

April 16, 2008 by aaron
One of my readers recently asked how I created my horizontal menu bar: the short answer is by mixing CSS and Javascript. The first step is to get WordPress to display the menu as a hierarchical list without a title. <?php wp_list_categories('sort_column=name&sort_order=asc&style=list&children=true&hierarchical=true&title_li=0'); ?> We then wrap this WordPress code in the following so we can style it. <div style="text-align:center;"> <ul id="menu" style="padding:0; margin:0;"> <?php wp_list_categories(&#039;sort_column=name&sort_order=asc&style=list&children=true&hierarchical=true&title_li=0&#039;); ?> </ul> </div> I added this to my header.php, but you can add it anywhere you want it to appear.
Read More ⟶

Designing flexible WordPress themes.

April 29, 2007 by aaron
The average WordPress theme has different files for pages, single posts, archives and the front page; however, most of them are almost exactly the same except for inside the_loop. This is a quick tutorial on how to do the most with the fewest files, and includes a few methods to have custom templates by separating content display from structural elements. WordPress looks first for special files and then defaults to the index.php file (as shown in this diagram).
Read More ⟶

Creating a World- An Introduction and The Goals

April 3, 2006 by aaron

I have always wanted to write a book. Not just any book; a good one. One that creates an entire universe and populates it; maybe not even a single book, maybe a whole series. Anyway, that’s not why this whole section is here. Instead this section will create a universe. As a basic foundation it will be similar to any Fantasy book or movie you have read. There will be Elves, Dwarfs, Goblins and Dragons. Instead of creating a world defined by the genre and within a tired cliche, I will try to breath new life into the old themes; in such a way that the universe I create is unique while still be familiar and accessible.

Read More ⟶