就像注释说的一样,我不知道怎么弄了

<?php
//各分类不同文章页模板,在template-parts/post文件夹内放入post-$slug.php的模板文件即可自动调用。但是如果一篇文件归属2个分类,这特么怎么弄呢?
if (file_exists(__DIR__ . '/template-parts/post/post-'.$this->category.'.php')) {
    $this->need('template-parts/post/post-'.$this->category.'.php');
} else {
    $this->need('template-parts/post/post-default.php');
}
?>