[23 May 2008 | 3 Comments | ]
Display the Oodle API with Wordpress using Custom Fields

There is very little documentation available on the Oodle API. The official Yahoo discussion group is useful to an extent but there isn’t much going on over there. There is, however, some decent documentation at the Oodle developer center.
*Disclaimer: I am not an expert programmer. Far from it- everything I’ve learned [...]

Read the full story »

Display, PHP »

Display the Subcategory Without the Parent Category
[17 Jul 2008 | No Comment | ]

Many people on the Wordpress.org support forum are asking how to do this.

Here is the simple solution I came across. It will allow you to display the title of a child category without displaying the parent category.

Put this code in your template:

PHP:
  1. <?php
  2. $category = get_the_category();
  3. echo $category[1]->cat_name;
  4. ?>

(Adapted from this code at Wordpress.org.)

The [1] tells it not to pull the parent category which would be [0] but instead to pull the child category which is [1]. If your hierarchy contains more layers simply change the number accordingly.