在顶级栏目的category页放入如下代码:

<?php
 if($child){
     $child_arrary=explode(',',$arrchildid);
        $to_url=$CATEGORYS[$child_arrary[0]][url];
  echo "<script>window.location.href='".$to_url."'</script>";
    }
?>

如果子栏目是文章模型,则需要有list页

相关文章:

  • 2021-05-25
  • 2021-04-11
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
相关资源
相似解决方案