This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Current Code

By: a guest on Jan 9th, 2013  |  syntax: PHP  |  size: 0.29 KB  |  views: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. } ?>
clone this paste RAW Paste Data