-
< ?
$categories = get_categories('hide_empty=0&order=DESC&orderby=id');
foreach ($categories as $cat) { ?>
- “>< ?php the_title(); ?>
< ?php
$catID = $cat->cat_ID;
query_posts(“showposts=8&cat=$catID”);
$first=1;
$ul=0;
while (have_posts()) : the_post();
// Latest post with excerpt
if($first) {
?>
“>< ?php the_title(); ?>
< ?php $first=0; } // end if else { if ($ul==0) { echo '
- ‘;
$ul=1;
}
?>
< ?php } // end else ?>
< ?php endwhile; ?>
< ?if ($ul) echo '
‘ ?>
< ?php } //end foreach ?>