打开include/taglib/channelartlist.lib.php文件
找到
$dsql->SetQuery("SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `dede_arctype` WHERE $tpsql ORDER BY sortrank ASC LIMIT $totalnum");
改成
$dsql->SetQuery("SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `dede_arctype` WHERE $tpsql ORDER BY substring_index('$typeid',id,1) LIMIT $totalnum");
前端调用
{dede:channelartlist typeid='1,2,3,4,5,6'}
{dede:type}
<li><a href='[field:typeurl/]' [field:rel/]>[field:typename/]</a></li>
{/dede:type}
{/dede:channelartlist}