Don't like ads? PRO users don't see any ads ;-)
Guest

Mashable like Two Tier Menu Bar

By: a guest on Jan 23rd, 2011  |  syntax: PHP  |  size: 0.46 KB  |  hits: 267  |  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.   <div id="subnav" class="nav clearfix">
  2.     <ul>
  3.       <?php
  4.         if (!is_home ()) {
  5.                 global $this_category;     // if outside the loop
  6.                 if (is_category ()) {
  7.                         $this_category = get_category($cat);
  8.                 }
  9.                         $children = wp_list_categories("&title_li=&child_of=" . $this_category->cat_ID . "&echo=0&depth=1&exclude=1");
  10.                         echo $children;
  11.                 }
  12.       ?>
  13.     </ul>
  14.   </div>