Working on photography.name1price.com

After talking with Peter the other apparently it seems I need a chunk of code which I could use to list out the sub categories in my wordpress photography system over at photography.name1price.com

I found this chunk of code over here

if (is_category()) {
  $this_category = get_category($cat);
  if (get_category_children($this_category->cat_ID) != "") {
    echo "<h1>Subcategories</h1>";
    echo "<ul>";
    wp_list_categories('orderby=id&show_count=0&title_li=
&use_desc_for_title=1&child_of='.$this_category->cat_ID);
    echo "</ul>";
  }
}

This is from Yoast

Let’s see if it is what I am looking for.

Comments are closed.