View difference between Paste ID: nyhH9W68 and jAZcr3Cn
SHOW: | | - or go back to the newest paste.
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
} ?>