I guess “issue” is the wrong word, just unexpected behaviour, and after testing further, it seems if an attachment is unattached, or attached to a post that has comments enabled, you can post comments on them.
For anyone else looking for an answer, I’ve seen both the wp_redirect method i posted above used, and I also went with the code below on a site today, assuming you have no image or attachment template, and attachments are being processed by the index, or main loop, just replace the regular
<?php comments_template(); ?>
<?php if (!is_attachment()) : comments_template(); endif; ?>
Viewing 1 replies (of 1 total)
The topic ‘Image Attachments and Comments’ is closed to new replies.