Advertisement
Guest User

Untitled

a guest
Oct 30th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. $parent = get_cat_ID("photos");
  3. $cats = get_categories('child_of='.$parent);
  4. $term_id = get_query_var('cat');
  5. $image = get_option( 'taxonomy_image_' . $term_id );
  6. foreach ($cats as $cat) {
  7. echo "<ul>";
  8. echo sprintf("<li><a href='%s'><img src=".$image.">%s</a></li>", get_category_link($cat->term_id), apply_filters("get_term", $cat->name));
  9. echo "</ul>";
  10. } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement