Z-blog-PHP分类导航循环显示下级各个分类的文章
foreach ($array as $cate) { $str .= '<li class="cat-item"><a href="' . $cate->Url . '">' . $cate->Name . '</a><ul>'; $a = Getlist(10, $cate->Name); foreach ($a as $article) { $str .= '<li ><a href = "' . $article->Url . '" > ' . $article->Title . '</a ></li>'; } $str .= '</ul ></li > '; } echo $str;