iam trying to hide the comments box on certain category, so the user cannot comment on the posts which fall in that category
‘<?php if (is_category(‘x’)) : ?>
<?php else : ?>
<?php comments_template(); ?>
<?php endif; ?>’
buts its not working, anyone got solution for this?
- The topic ‘Hide comments box on certain category posts’ is closed to new replies.