I’m trying to get the attachment template working, but for some reason WordPress is using my single.php instead of the attachment.php I have in my folder. Has this happened to anyone else or did I miss a setting?
Nevermind. After many hours of frustration, I figured out the paged comments plugin was causing the error. Line 67 of paged-comments.php should be changed to:
if (is_attachment()) {
$template = get_attachment_template();
} else if (is_single()) {
$template = get_single_template();
} else if (is_page()) {
$template = get_page_template();
}
Viewing 1 replies (of 1 total)
The topic ‘Attachment.php not recognized’ is closed to new replies.