Remove Comments Based on Categories in Genesis

You can remove and control the Comments section based on what Category a post is set to in Genesis by conditionally removing an action based on the category.

So in the code snippet above I want comments only on a certain category which has the id of 38, so the code says that is the post is not in the category of 38 then remove the comments template.

 

Leave all Comment