上午排除特定类别的评论。但是,当我尝试排除多于一个时,它不起作用。如何在这个WordPress的黑客中指定多个类别?
这工作:<?php if (!in_category('7')) comments_template(); ?>
这不起作用:
<?php if (!in_category('7 , 9')) comments_template(); ?>
或
<?php if (!in_category('7')) comments_template(); ?> <?php if (!in_category('9')) comments_template(); ?>