SHARE
TWEET

Current Code

a guest Jan 9th, 2013 14 Never
  1. <?php
  2.     $parent = get_cat_ID("photos");
  3.     $cats = get_categories('child_of='.$parent);
  4.     foreach ($cats as $cat) {
  5.         echo "<ul>";
  6.         echo sprintf("<li><a href='%s'>%s</a></li>", get_category_link($cat->term_id), apply_filters("get_term", $cat->name));
  7.     echo "</ul>";
  8. } ?>
RAW Paste Data
Top